super65 master 192.168.1.65
super66 minion 192.168.1.66
主配置文件:
[[email protected] ~]# ll /etc/salt/master
-rw-r----- 1 root root 29543 Mar 23 06:24 /etc/salt/master
[[email protected] ~]# ll /etc/salt/minion
-rw-r----- 1 root root 26365 Mar 23 06:24 /etc/salt/minion
修改minion配置文件:
[[email protected] ~]# vim /etc/salt/minion
启动salt-minion:
[[email protected] ~]# /etc/init.d/salt-minion start
Starting salt-minion daemon: [ OK ]
修改master端配置:
[[email protected] ~]# vim /etc/salt/master
启动salt-master:
[[email protected] ~]# /etc/init.d/salt-master start
Starting salt-master daemon: [ OK ]
salt的其他配置文件参数很多
详情请参照官方文档。
时间: 2024-10-26 22:26:43