实验环境:RHEL7.4
官网地址:https://saltstack.com/
[root@Yang ~]# yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm -y ---安装源 [root@Yang ~]# yum install salt-master salt-minion salt-ssh salt-syndic salt-cloud salt-api -y ---安装所需软件包[root@Yang ~]# systemctl restart salt-minion [root@Yang ~]# vim /etc/salt/master ---修改配置文件
interface: 192.168.127.66 ---写本地IP,默认监听所有
[root@Yang ~]# vim /etc/salt/minion
master: 192.168.127.66
[root@Yang ~]# systemctl restart salt-master salt-minion salt-api --重启服务 [root@Yang ~]# netstat -lntp |egrep "4505|4506" tcp 0 0 192.168.127.66:4505 0.0.0.0:* LISTEN 1665/python tcp 0 0 192.168.127.66:4506 0.0.0.0:* LISTEN 1671/python
此时Saltstack安装成功。
本文由 podipod软库网 作者:DevOps 发表,转载请注明来源!