在部署saltstack时所遇到的报错!
[root@lxn1 etc]# salt-key -A
The key glob ‘’ does not match any unaccepted keys.
[root@lxn1 etc]# salt '’ test.ping
No minions matched the target. No command was sent, no jid was assigned.
ERROR: No return received
从以上报错可以看出,master端和minion端无法互相检测
- 在minion端查看日志
# cat /var/log/salt/minion
看到没,minion端在询问你,1.1.1.1(这是我master端的ip)是否有响应?
咱再看一下master端的配置文件:
# vim /etc/salt/master
在interface后面写入master端的IP,master绑定接口地址
15 interface: 1.1.1.1
# systemctl restart salt-master #重启
成功接收到钥匙
# salt-key -L
# salt-key -A