安装 saltstack
yum install salt-master salt-minion -y
开机配置
systemctl enable salt-master && chkconfig salt-master on systemctl enable salt-minion && chkconfig salt-minion on systemctl start salt-master && service salt-master start systemctl start salt-minion && service salt-minion start
安装 minion 端(agent)
yum install salt-minion -y
指定 master 地址 ip
sed -i 's/#master: salt/master: 192.168.0.109/g' /etc/salt/minion
systemctl enable salt-minion && chkconfig salt-minion on
systemctl restart salt-minion && service salt-minion restart