摘要: 所有机器的minion修改 vim /etc/salt/minion master: - 192.168.1.61 - 192.168.1.62 配置数据同步到备机,我用的rsync 原master操作 yum install -y rsync vim /etc/rsyncd.conf uid = 阅读全文
posted @ 2021-02-25 16:17 莫莫学习 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 方便二次开发调用 https://www.unixhot.com/docs/saltstack/ref/netapi/all/salt.netapi.rest_cherrypy.html#a-rest-api-for-salt 执行参考 https://www.unixhot.com/docs/sa 阅读全文
posted @ 2021-02-25 15:20 莫莫学习 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 不需要启动salt-minion来使用salt 安装salt-ssh salt-ssh是串行运行的,所以效率上一定不如minion方式,只是提供了另一种执行方式 yum install -y salt-ssh vim /etc/salt/roster linux-node1.example.com: 阅读全文
posted @ 2021-02-25 10:23 莫莫学习 阅读(47) 评论(0) 推荐(0) 编辑