#master
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/CentOS-Base.repo
yum install epel-release -y
yum install salt-master -y
service salt-master start
service firewalld stop
setenforce 0
getenforce
salt-key -L
salt-key -A -y
salt-key -L
salt dev3 test.ping
salt dev3 cmd.run ‘hostname -i’
#minion
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o /etc/yum.repos.d/CentOS-Base.repo
yum install epel-release -y
yum install salt-minion -y
echo “master: 192.168.31.210″ > /etc/salt/minion
service salt-minion start
service firewalld stop
ps -ef | grep salt | grep -v grep