How to communicate with salt-master

大兔子大兔子 提交于 2019-12-06 04:47:00

This could be due to default incoming port on master (4505 and 4506) for salt communication are blocked Since minions connect to masters, the only firewall configuration that must be done is on the master. By default master must be able to accept incoming connection on port 4505 and 4506 If your master is on centos or RHEL try below command to add ports to your firewall settings 1. firewall-cmd --get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required.

  1. firewall-cmd --permanent --zone= --add-port=4505-4506/tcp firewall-cmd --reload (to open port 4505 and 4506)

You need to add your salt minion to your master. To do that run following command on you master:

salt-key -A <your_minions_hostname_or_ip>

For example in my case I did

salt-key -A virtual@192.168.56.101

For reference have a look here.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!