标签:salt
yum search saltserver 服务端
yum install salt-master
systemctl start salt-master 启动服务
端口4505 4506
ss -ltn | grep "450[56]"
client all 所有客户端
for i in host{1..99};do ssh $i ‘yum install -y stalt-minion‘ ;done
master 是谁 sm
id 你是谁 客户机主机名
network.ip=0.0.0.0
vim /etc/salt/minion
master: host99
id: host1
all host configure
systemctl start salt-minion
sed -n "/^#master: /p" /etc/salt/minion
sed -n "/^#id: /p" /etc/salt/minion
sed -e "s/^#\(master:\).*/\1 host99/"
sed -e "/^#\(id:\)/1 ${HOSTNAME}/" /etc/salt/minion
salt-key -L
标签:salt
原文地址:http://blog.51cto.com/creatoryuan/2072652