二、saltstack基础配置
super65 master 192.168.1.65
super66 minion 192.168.1.66
主配置文件:
[root@super65 ~]# ll /etc/salt/master
-rw-r----- 1 root root 29543 Mar 23 06:24 /etc/salt/master
[root@super66 ~]# ll /etc/salt/minion
-rw-r----- 1 root root 26365 Mar 23 06:24 /etc/salt/minion
修改minion配置文件:
[root@super66 ~]# vim /etc/salt/minion
启动salt-minion:
[root@super66 ~]# /etc/init.d/salt-minion start
Starting salt-minion daemon: [ OK ]
修改master端配置:
[root@super65 ~]# vim /etc/salt/master
启动salt-master:
[root@super65 ~]# /etc/init.d/salt-master start
Starting salt-master daemon: [ OK ]
salt的其他配置文件参数很多
详情请参照官方文档。