#/bin/bash
cd /tmp
unzip -o salt-minion.zip
cd salt-minion && rpm -ivh *.rpm --force
sed -i ‘s/#master: salt/master: 10.66.225.37/g’ /etc/salt/minion
sed -i ‘s/#id:/id: 10.66.225.38/g’ /etc/salt/minion
service salt-minion start
echo “查看salt-minion进程是否启动”
ps -ef|grep salt