Environment:
Installation Environment: centos6.5 x64
master:192.168.0.23
minion:192.168.0.24
Installing the Epel source
/etc/init.d/iptables stopsed -i ‘/SELINUX/s/enforcing/disabled/g‘ /etc/selinux/config wget http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpmmaster安装:yum -y install salt-master salt-minionchkconfig salt-master onminion安装yum -y install salt-minionchkconfig salt-minion on
Configure Salt-master
user: rootworker_threads: 5publish_port: 4505worker_threads: 5pidfile: /var/run/salt-master.pidusers:- rootfile_roots:base:- /srv/salt/dev:- /srv/salt/dev/log_file: /var/log/salt/master
Configure Salt-master
user: rootmaster : 192.168.0.23id: node24.commaster_port: 4506log_file: /var/logs/salt_minion.log
Start salt
masterservice salt-master restartminionservice salt-minion restart
Note: Saltstack is written in the language of Python2 and is not compatible with Python3, please use the PYTHON2 environment
SALT certification
View Certifications on Master
# salt-key Accepted Keys:Denied Keys:Unaccepted Keys:node24.comRejected Keys:
Salt-key-y-a node24.com #添加单个key
# salt-key Accepted Keys:node24.comDenied Keys:Unaccepted Keys:Rejected Keys:
Test salt
salt ‘*‘ test.ping node24.com:Truenode23.com:True
This installation is complete
?
Installation of Saltstack