saltstack之安装wordpress(lnmp)
1.安装salt
服务端
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install salt-master -y
yum install salt-minion -y
chkconfig salt-master on
chkconfig salt-minion on
/etc/init.d/salt-master start
客户端
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install salt-minion -y
chkconfig salt-minion on
配置salt
salt-master
vim /etc/salt/master
416 file_roots:
417 base:
418 - /srv/salt
mkdir /srv/salt
/etc/init.d/salt-master restart
minion
vim /etc/salt/minion
master: 10.20.23.144 #masterip
/etc/init.d/salt-minion start
嗨、骚年、快来消灭0回复。