简介
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第三方源;
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
配置文件所在目录:/etc/salt
主要包括master,minion
修改master里面的interface
#interface: 0.0.0.0
interface: master_IP
-------------------
修改minion里面的master
#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
--------------------
配置文件所在目录:/etc/salt
-------------------
修改minion里面的master
#master: salt
master: master_IP
-------------------
/etc/init.d/salt-minion start
++++++++++++++++++++++++++++++++
3,key 管理
salt-key -L ----------------查看key全部信息
salt-key -a xxx -----------批准xxx的认证
salt-key -A ---------------批准客户端全部的认证请求
4,注意selinux关闭,防火墙端口4505,4506要开启
-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
出处:http://tntdba.blog.51cto.com/1199791/1136609
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索interface
, install
, hosts
, state
, master
, salt
SALT扰码
saltstack 安装、adaucogit salt安装、saltstack安装配置、salt 安装、salt api安装,以便于您获取更多的相关知识。