Stalstack 连接管理配置
注:master端,minion端,配置完成。
 
Saltstack master 测试管理端minion链接状态。
salt-key
Accepted Keys:
Denied Keys: Unaccepted Keys: Stest1 Stest2 Rejected Keys:
 
Saltstack master 设置允许管理所有minion
salt-key -A
The following keys are going to be accepted:
Unaccepted Keys: Stest1 Stest2 Proceed? [n/Y] y Key for minion test1 accepted. Key for minion test2 accepted. 注:算则Y确认管理。
测试minion是否存活
salt '*' test.ping
Stest1
    True
Stest2:
    True
注:test.ping 是使用内部自己协议的ping进行判断。

 

 

错误:Minion did not return. [No response]

解决方案1:重新与master进行连接认证
1.删除minion端的salt-master秘钥信息 minion端:rm -rf /etc/salt/pki/minion/minion_master.pub master端:rm -rf /etc/salt/pki/master/minion_master.pub 2.重新验证秘钥测试 master端:salt-key -L master端:salt-key -A 解决方案2:保证master主机名不予minion端重复。 解决方案3:重启。

 

 
 
 
Stalstack 连接管理配置
注:master端,minion端,配置完成。
 
Saltstack master 测试管理端minion链接状态。
salt-key
Accepted Keys:
Denied Keys: Unaccepted Keys: Stest1 Stest2 Rejected Keys:
 
Saltstack master 设置允许管理所有minion
salt-key -A
The following keys are going to be accepted:
Unaccepted Keys: Stest1 Stest2 Proceed? [n/Y] y Key for minion test1 accepted. Key for minion test2 accepted. 注:算则Y确认管理。
测试minion是否存活
salt '*' test.ping
Stest1
    True
Stest2:
    True
注:test.ping 是使用内部自己协议的ping进行判断。

 

 

错误:Minion did not return. [No response]

解决方案1:重新与master进行连接认证
1.删除minion端的salt-master秘钥信息 minion端:rm -rf /etc/salt/pki/minion/minion_master.pub master端:rm -rf /etc/salt/pki/master/minion_master.pub 2.重新验证秘钥测试 master端:salt-key -L master端:salt-key -A 解决方案2:保证master主机名不予minion端重复。 解决方案3:重启。