sed -i 's/^#//g'  /etc/yum.repos.d/centos6.8.repo

sed -i 's/enabled=0/enabled=1/g'  /etc/yum.repos.d/centos6.8.repo

rm -rf /etc/salt/pki/minion/minion_master.pub

systemctl stop firewalld.service

systemctl disable firewalld

service iptables stop

chkconfig   iptables off

mshn=VECS00044

msip=10.111.20.176 

hn=`hostname`

yum install salt-minion -y

sed -i  "s/^#master:.*/master: $mshn/g" /etc/salt/minion

sed -i  "s/^master:.*/master: $mshn/g" /etc/salt/minion

sed -i  "s/^#id:.*/id: $hn/g" /etc/salt/minion

sed -i  "s/^id:.*/id: $hn/g" /etc/salt/minion

echo "$msip           $mshn"   >> /etc/hosts

service salt-minion restart

chkconfig salt-minion on

systemctl enable salt-minion 

echo "TERM=linux"  >> /etc/profile

source  /etc/profile

相关文章:

  • 2022-01-05
  • 2021-09-18
  • 2022-12-23
  • 2021-05-01
  • 2021-08-21
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2021-12-19
  • 2021-08-21
  • 2022-12-23
  • 2021-09-28
  • 2021-07-02
  • 2021-07-27
相关资源
相似解决方案