配置環境
master節點 :172.16.100.10
minion節點 :172.16.100.20
msater節點
#####安裝軟體包#####
# curl -o /etc/yum.repos.d/epel-7.repo
# yum -y install salt-master salt-minion
# systemctl start salt-master.service
# ^start^enable
#####修改minion配置檔案#####
# vim /etc/salt/minion
master: 172.16
.100
.10 主節點位址
id:fqdn 不設定的話為預設主機名,存放位置/etc/salt/minion_id
# systemctl start salt-minion
# ^start^enable
# tree /etc/salt/pki/
/etc/salt/pki/
├── master
│ ├── master.pem
│ ├── master.pub
│ ├── minions
│ ├── minions_autosign
│ ├── minions_denied
│ ├── minions_pre 存放監控節點公鑰
│ │ ├── compute
│ │ └── controller
│ └── minions_rejected
└── minion
├── minion.pem
└── minion.pub
minion節點
#####安裝軟體包#####
# curl -o /etc/yum.repos.d/epel-7.repo
# yum -y install salt-minion
#####修改配置檔案#####
# vim /etc/salt/minion
master: 172.16
.100
.10# systemctl start salt-minion
# ^start^enable
# tree /etc/salt/pki/minion
/etc/salt/pki/minion
├── minion.pem
└── minion.pub 服務啟動生成的公鑰會傳輸到主節點的/etc/salt/pki/master/minions_pre目錄下
master點
#####新增監控節點#####
# salt-key -a compute,controller
# salt-key 檢視允許通訊的監控主機
accepted keys:
compute
controller
denied keys:
unaccepted keys:
rejected keys:
# tree /etc/salt/pki
/etc/salt/pki
├── master
│ ├── master.pem
│ ├── master.pub
│ ├── minions 公鑰從minios_pre轉到minios
│ │ ├── compute
│ │ └── controller
│ ├── minions_autosign
│ ├── minions_denied
│ ├── minions_pre
│ └── minions_rejected
└── minion
├── minion_master.pub
├── minion.pem
└── minion.pub
# netstat -lpta |grep 4505 傳送埠
tcp 0
00.0.0.0:4505
0.0.0.0:* listen 67903/python
tcp 0
0172.16.100.10:52424
172.16.100.10:4505 established 69995/python
tcp 0
0172.16.100.10:4505
172.16.100.20:60225 established 67903/python
tcp 0
0172.16.100.10:4505
172.16.100.10:52424 established 67903/python
# netstat -lpta |grep 4506 接受埠
tcp 0
00.0.0.0:4506
0.0.0.0:* listen 67925/python
tcp 0
0172.16.100.10:4506
172.16.100.10:51547 established 67925/python
tcp 0
0172.16.100.10:51547
172.16.100.10:4506 established 69995/python
tcp 0
0172.16.100.10:4506
172.16.100.20:44469 established 67925/python
saltstack 安裝部署
官方源 saltstack yum源 系統環境 cat etc redhat release centos linux release 7.2.1511 core saltstack安裝版本 salt v salt version salt 2017.7.2 dependency versions ...
saltstack安裝部署
saltstack是基於python開發的一套c s架構配置管理工具,使用ssl證書籤方的方式進行認證管理,底層使用zeromq訊息佇列pub sub方式通訊。saltstack有兩個主要功能,分別是配置管理與遠端執行。saltstack基於c s架構,伺服器端稱作master,客戶端稱作minio...
SaltStack安裝部署
salt是一種和以往不同的基礎設施管理方法,它是建立在大規模系統高速通訊能力可以大幅提公升的想法上。這種方法使得salt成為乙個強大的能夠解決基礎設施中許多特定問題的多工系統。遠端執行引擎是salt的核心,它能夠為多組系統建立高速 安全的雙向通訊網路。基於這個通許系統,salt提供了乙個非常快速 靈...