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