一 服务端
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
/etc/init.d/salt-master start
二 客户端
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install salt-minion
vim /etc/hosts
/etc/init.d/salt-minion start
三 服务端操作
salt-key -L 查询minion端验证请求
salt-key -a 接受指定客户端请求
salt-key -A 接受所有客户端请求
salt-key -d 删除指定客户端
salt-key -D 删除所有客户端
[root@master salt]# salt ‘*‘ cmd.run "uname -r"
agent.test.com:2.6.32-573.el6.x86_64
[root@master salt]# salt ‘*‘ test.ping
agent.test.com:True
python 监听minion信息返回状态