First, the basic concept
saltstack based on C/S architecture, server-side master and client minions
Ii. installation:
Specific operation can be selected according to the official website, here choose to install the latest version
Yum Install https://repo.saltstack.com/yum/redhat/salt-repo-2015.8-2.el6.noarch.rpm
yum Clean Expire-cache
yum Install Salt-master (server side)
yum install salt-minion(客户端)
yum install salt-ssh
yum install salt-syndic
yum install salt-cloud
yum install salt-api
Third, the configuration file: /etc/salt/master
master End:
port: 4505 (publish_port): Salt's message publishing system
4506 (ret_port): Salt client communicates with the server port
minion End:
Configuration file:/etc/salt/minion
Master: Server Host Name
ID: Client Host Name
Configuration file Note format unification
master:192.168.1.1
Id:minion-192-168-1-2
Start the service:
/etc/init.d/salt-minion start
/etc/init.d/salt-master start
Third, certification
Like Puppet, the Salt master and minions are communicating through certificates, so there is a certificate trust issue.
On the master side: Salt-key-l View currently required keys (both master and minions need to be enabled)
Salt-key-a 192.168.1.2 Accept 192.168.1.2 's certificate
detects if master and two minion communication is normal :
Salt "192.168.1.2" test.ping
appear TrueThis indicates that the service-to-client communication is normal and the basic environment is successfully built.
Salt-stack Installation