安装saltstack
1.安装master
安装epel源
# cd /usr/local/src/ # wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
安装rpmforge
# wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
安装salt-master
yum -y install salt-master enablerepr=epel-testing
2.安装minion
yum install slat-minion
3.设置master和minion监听的master地址
vim /etc/salt/master 修改 interface: 192.168.8.190
master和minion的interface地址都是master的地址
4.设置接受所有key
salt-key -A
5.salt命令
salt '*' test.ping