Saltstack基本安装部署
生活随笔
收集整理的這篇文章主要介紹了
Saltstack基本安装部署
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
配置環境
master節點 :172.16.100.10
minion節點 :172.16.100.20
msater節點
#####安裝軟件包##### # curl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/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.pubminion節點
#####安裝軟件包##### # curl -o /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/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 0 0.0.0.0:4505 0.0.0.0:* LISTEN 67903/python tcp 0 0 172.16.100.10:52424 172.16.100.10:4505 ESTABLISHED 69995/python tcp 0 0 172.16.100.10:4505 172.16.100.20:60225 ESTABLISHED 67903/python tcp 0 0 172.16.100.10:4505 172.16.100.10:52424 ESTABLISHED 67903/python # netstat -lpta |grep 4506 接受端口 tcp 0 0 0.0.0.0:4506 0.0.0.0:* LISTEN 67925/python tcp 0 0 172.16.100.10:4506 172.16.100.10:51547 ESTABLISHED 67925/python tcp 0 0 172.16.100.10:51547 172.16.100.10:4506 ESTABLISHED 69995/python tcp 0 0 172.16.100.10:4506 172.16.100.20:44469 ESTABLISHED 67925/python 《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的Saltstack基本安装部署的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java 对比Vector、ArrayL
- 下一篇: exportfs命令、NFS客户端问题、