Brief introduction
Salt is:
a configuration management system, capable of maintaining remote nodes into defined states (for example, Ensuri ng that
specific packages are installed and specific services are running)
a distributed remote Execution system u Sed to execute commands and query data on the remote nodes, either individually
or by arbitrary selection criteria
Prerequisite: Has installed Epel third party source;
1,at Master
echo "Master_ip master_hostname" >>/etc/hosts
echo "slave_ip slave_hostname" >>/etc/hosts
Yum install salt-y
yum install salt-master-y yum install salt-minion-y
Configuration file directory:/etc/salt
mainly including master,minion
Modify the interface inside Master
#interface: 0.0.0.0
Interface:master_ip
-------------------
Modify Master inside the Minion
#master: Salt
MASTER:MASTER_IP-
------------------
/etc/init.d/salt-master start
/etc/init.d/salt-minion start
+++++++++++++++++++++++++
2,at Client
echo "Master_ip master_hostname" >>/etc/hosts
echo "Slave_ip slave_hostname" >>/etc/hosts
Yum Install Salt-y
Yum instal salt-minion-y
--------------------
Configuration file directory:/etc/salt
-------------------
Modify Master inside the Minion
#master: Salt
Master:master_ip
-------------------
/etc/init.d/salt-minion start
++++++++++++++++++++++++++++++++
3,key Management
Salt-key-l----------------View all key information
salt-key-a xxx-----------Approve XXX's certification
Salt-key-a---------------approve all client authentication requests
4, note selinux shutdown, firewall port 4505,4506 to open
-A rh-firewall-1-input-m state--state new,established,related-j ACCEPT
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 4505-j ACCEPT
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 4506-j ACCEPT
Source: http://tntdba.blog.51cto.com/1199791/1136609