簡介:
- Salt is:
- • a configuration management system, capable of maintaining remote nodes in defined states (for example, ensuring
- that specific packages are installed and specific services are running)
- • a distributed remote execution system used to execute commands and query data on remote nodes, either individually
- or by arbitrary selection criteria
前提:已安裝epel第三方源;
- 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
- #interface: 0.0.0.0
- interface: master_IP
- #master: salt
- master: master_IP
- /etc/init.d/salt-master start
- /etc/init.d/salt-minion start
- echo "master_IP master_hostname" >> /etc/hosts
- echo "slave_IP slave_hostname" >> /etc/hosts
- yum install salt -y
- yum instal salt-minion -y
- #master: salt
- master: master_IP
- /etc/init.d/salt-minion start
-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