seemebaby 发表于 2018-8-1 06:10:36

Saltstack实战配置client_acl

# vim /etc/salt/master打开注释并修改用户名  
client_acl:
  
oldboy:
  
    - test.ping
  
    - network.*
  
# chmod 755 /var/cache/salt /var/cache/salt/master /var/cache/salt/master/jobs /var/run/salt /var/run/salt/master
  
# chmod 777 /var/log/salt/master
  
# /etc/init.d/salt-master restart
  
# su - oldboy
  
$ salt '*' test.ping
  
linux-node2.example.com:
  
    True
  
linux-node1.example.com:
  
    True
  
$ salt '*' cmd.run 'w'
  
Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
页: [1]
查看完整版本: Saltstack实战配置client_acl