diff --git a/998-常用脚本/OctopusAgent运行/bastion模式运行基础环境.sh b/998-常用脚本/OctopusAgent运行/bastion模式运行基础环境.sh new file mode 100644 index 0000000..d17b29a --- /dev/null +++ b/998-常用脚本/OctopusAgent运行/bastion模式运行基础环境.sh @@ -0,0 +1,11 @@ +#!/bin/bash + + +https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/docker-amd64-20.10.15.tgz + +https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/harbor-offline-installer-v2.9.0.tgz + +https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/docker-compose-linux-x86_64-v2.18.0 + + +file_list=(docker-amd64-20.10.15.tgz harbor-offline-installer-v2.9.0 docker-compose-linux-x86_64-v2.18.0) \ No newline at end of file diff --git a/998-常用脚本/OctopusAgent运行/octopus-agent-run.sh b/998-常用脚本/OctopusAgent运行/octopus-agent-run.sh new file mode 100644 index 0000000..2af2481 --- /dev/null +++ b/998-常用脚本/OctopusAgent运行/octopus-agent-run.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# internet +bash <(curl -sL http://42.192.52.227:9000/octopus/init-script-wdd.sh) --url http://42.192.52.227:9000/octopus --agent-install --offline + +# no internet +export offline_minio=103.0.180.82 +bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --agent-install --offline \ No newline at end of file diff --git a/998-常用脚本/OctopusAgent运行/同步资料.sh b/998-常用脚本/OctopusAgent运行/同步资料.sh new file mode 100644 index 0000000..52a7aff --- /dev/null +++ b/998-常用脚本/OctopusAgent运行/同步资料.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +host_list=(10.129.80.217) +host_list=(10.129.80.218 10.129.80.245 10.129.80.222 10.129.80.223) + +host_list=(10.129.80.217 10.129.80.245 10.129.80.222 10.129.80.223) + +for ip in "${host_list[@]}";do + echo "current ip is $ip" + ssh root@${ip} "curl 172.24.152.72" +done + + +disk + +10.129.80.245 + +mv /root/wdd/octopus-agent_linux_amd64_2024-09-23-17-08-44 /usr/local/bin/octopus-agent +chmod +x /usr/local/bin/octopus-agent + + +# ssh root@${ip} "mkdir /root/wdd" +# scp octopus-agent root@${ip}:/root/wdd/ +# scp /root/wdd/docker-amd64-20.10.15.tgz root@${ip}:/root/wdd/ +# scp /root/wdd/nfs_client_22.04.4_amd64.tar.gz root@${ip}:/root/wdd/ +# scp /root/wdd/nfs_server_22.04.4_amd64.tar.gz root@${ip}:/root/wdd/ +# scp /root/wdd/docker-compose-linux-x86_64-v2.18.0 root@${ip}:/root/wdd/ + +# ssh root@${ip} "chmod +x octopus-agent" +# ssh root@${ip} "printf 'firewall\n' | octopus-agent --mode=bastion" +# ssh root@${ip} "printf 'sysconfig\n' | octopus-agent --mode=bastion" +# ssh root@${ip} "printf 'swap\n' | octopus-agent --mode=bastion" +# ssh root@${ip} "printf 'selinux\n' | octopus-agent --mode=bastion" +# ssh root@${ip} "printf 'docker\n' | octopus-agent --mode=bastion" +# ssh root@${ip} "printf 'dockercompose\n' | octopus-agent --mode=bastion" + +scp /etc/docker/daemon.json root@${ip}:/etc/docker/ + +ssh root@${ip} "systemctl restart docker && sleep 3 && docker info" + +sed -i '/^$/d' ~/.ssh/*