redhat6.8安裝salt minion
阿新 • • 發佈:2018-08-17
eof type 方便 watermark idl earch 啟動 mark lean 新加了幾臺機器,方便以後管理,全部裝上salt minion。
1、saltstack的yum源的添加
cat > /etc/yum.repos.d/saltstack.repo << EOF
[saltstack]
name=SaltStack repo for RHEL/CentOS \$releasever
baseurl=https://repo.saltstack.com/yum/redhat/\$releasever/\$basearch/latest
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/\$releasever/\$basearch/latest/SALTSTACK-GPG-KEY.pub
EOF
2、清理並建立元數據緩存
yum clean all && yum makecache
3、安裝minion
yum install salt-minion -y
4、修改minion配置文件
vi minion ID填寫主機名
master: yum.ops.net
id: DT-WH-1-11
tcp_keepalive: True
tcp_keepalive_idle: 300
tcp_keepalive_cnt: -1
tcp_keepalive_intvl: -1
5、啟動服務並檢查
/etc/init.d/salt-minion start
chkconfig salt-minion on
6、去master上測試
完成安裝
1、saltstack的yum源的添加
cat > /etc/yum.repos.d/saltstack.repo << EOF
[saltstack]
name=SaltStack repo for RHEL/CentOS \$releasever
baseurl=https://repo.saltstack.com/yum/redhat/\$releasever/\$basearch/latest
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/\$releasever/\$basearch/latest/SALTSTACK-GPG-KEY.pub
2、清理並建立元數據緩存
yum clean all && yum makecache
3、安裝minion
yum install salt-minion -y
4、修改minion配置文件
vi minion ID填寫主機名
master: yum.ops.net
id: DT-WH-1-11
tcp_keepalive: True
tcp_keepalive_idle: 300
tcp_keepalive_cnt: -1
tcp_keepalive_intvl: -1
5、啟動服務並檢查
/etc/init.d/salt-minion start
chkconfig salt-minion on
6、去master上測試
完成安裝
redhat6.8安裝salt minion