SaltStack 十

# 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章