#!/usr/bin/env bash

# 需要在所有的节点执行

hostnamectl set-hostname master-node

sed -i "/search/ a nameserver 223.5.5.5"  /etc/resolv.conf

echo "AllowTcpForwarding yes" >> /etc/ssh/sshd_config
systemctl restart sshd

cat >> /etc/hosts << EOF
192.168.6.6 master-node
192.168.6.5 worker-1
192.168.6.7 worker-2
192.168.6.3 worker-3
192.168.6.4 storage-1
EOF

yum clean all && yum makecache


root

10.18.70.43
Zytxjjh@0305


journalctl -u octopus-agent.service -n 200 -f

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

vim /usr/local/etc/octpus-agent/octopus-agent.conf

systemctl restart octopus-agent

1765654823726669826