saltstack簡介
saltstack 是服務器基礎架構集中化管理平臺。具有配置管理、遠程執行、監控等功能。python
saltstack 基於python。linux
注意:windows
puppet是一種Linux、Unix、windows平臺的集中配置管理系統,使用自有的puppet描述語言,可管理配置文件、用戶、cron任務、軟件包、
系統服務等。
zeromq,計算機術語,指的是相似於Socket的一系列接口,是一個輕量級的消息隊列。與Socket不一樣的是,socket寫一個消息隊列是
點對點的,而zeromq是
點對多的。
saltstack 安裝
一、獲取rpm包服務器
# rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm架構
二、安裝Master端
# yum install salt-master
三、安裝Minion端
# yum install salt-minion
四、修改配置文件
配置文件在/etc/salt/下
master:master
minion:minion
a、master 基本配置:
一、interface 綁定的本機的ip地址
二、自動認證,避免手動運行salt-key來確認證書信任
![](http://static.javashuo.com/static/loading.gif)
三、指定saltstack文件根目錄位置socket
![](http://static.javashuo.com/static/loading.gif)
四、重啓master測試
# service salt-master restart
b、minion 端配置spa
一、定義master端的接口3d
![](http://static.javashuo.com/static/loading.gif)
二、設置idrest
![](http://static.javashuo.com/static/loading.gif)
三、重啓minion
![](http://static.javashuo.com/static/loading.gif)
ok 完成!
# service iptables stop
修改 /etc/selinux/config 文件中的 SELINUX="" 爲 disabled ,而後重啓。
![](http://static.javashuo.com/static/loading.gif)
ok 測試成功
![](http://static.javashuo.com/static/loading.gif)