yujin2010good
作者yujin2010good·2019-07-19 10:04
系统工程师·大型零售巨头

saltstack开启自动认证

字数 728阅读 1109评论 0赞 1

1、服务器端配置
[root@ip-192-168-202-55 salt]# vi master
指定服务器端ip
interface: 192.168.202.55
开启自动认证
auto_accept: True
开启saltstack根目录
file_roots:
base:

  • /srv/salt

[root@ip-192-168-202-55 salt]# service salt-master restart
Stopping salt-master daemon: [ OK ]
Starting salt-master daemon: [ OK ]

2、客户端配置
vi /etc/salt/minion

指定服务器端ip

master: 192.168.202.55
指定客户端主机名
id: ip-192-168-202-53

service salt-minion restart

3、服务器上执行
[root@ip-192-168-202-55 salt]# salt ip-192-168-202-53 test.ping
ip-192-168-202-53:
True
[root@ip-192-168-202-55 salt]# salt-key
Accepted Keys:
ip-192-168-202-52
ip-192-168-202-53
ip-192-168-202-55
ip-192-168-202-56
Denied Keys:
Unaccepted Keys:
Rejected Keys:
[root@ip-192-168-202-55 salt]#

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

1

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广