# salt-master高可用 多master
minion配置可写为列表:
master:
- 192.168.2.103
- 192.168.2.104
保证两台master配置相同 # nfs文件共享
# nfs 搭建 on 192.168.2.103
yum install nfs-utils rpcbind
vim /etc/exports
/etc/salt/pki/master 192.168.2.104 *(rw,sync,no_root_squash,no_all_squash)
/srv/salt 192.168.2.104 *(rw,sync,no_root_squash,no_all_squash)
systemctl start nfs
# on 192.168.2.104
mount -t nfs 192.168.2.103:/etc/salt/pki/master /etc/salt/pki/master
mount -t nfs 192.168.2.103:/srv/salt /srv/salt
systemctl start salt-master