1.1 Masternode
Salt Master you need to bind the system 2 a TCP ports, respectively, are 4505 and the 4506 .
Yum Install Salt-master
Configuration Master Boot auto Start :
Chkconfig Salt-master on
Start Master:
Service Salt-master Start
Salt Master can also be at the front desk to Debug mode starts, which greatly increases the command output :
Salt-master-l Debug
1.2 Minionnode
Yum Install Salt-minion
Configuration Minion Boot auto Start :
Chkconfig salt-minion on
Start Minion:
Service Salt-minion Star
Modifying a configuration file /etc/salt/minion
Master:saltstack-master
Salt Minion can also be at the front desk to Debug mode starts, which greatly increases the command output :
Salt-minion-l Debug
1.3 Handshake
List Minion:
Salt-key or Salt-key-l
Accept Minion:
Salt-key–a saltstack-minion
Or
Salt-key–a
Test:
Salt ' * ' test.ping
Salt ' * ' Sys.doc
Salt ' * ' cmd.run ' ls-l/etc '
Salt ' * ' pkg.install vim
This article is from "Huboss's automated operation and Maintenance Road" blog, please be sure to keep this source http://huboss.blog.51cto.com/9883568/1743460
First knowledge of Saltstack