Saltstack实战配置client_acl
2015-11-26 22:47
483 查看
应用举例:
本文出自 “万越天的架构师之路” 博客,请务必保留此出处http://wanyuetian.blog.51cto.com/3984643/1717249
client_acl: # Allow thatch to execute anything. thatch: - .* # Allow fred to use test and pkg, but only on "web*" minions. fred: - web*: - test.* - pkg.*配置实战:
[root@linux-node1 pillar]# vim /etc/salt/master 打开注释并修改用户名 client_acl: oldboy: - test.ping - network.* [root@linux-node1 pillar]# chmod 755 /var/cache/salt /var/cache/salt/master /var/cache/salt/master/jobs /var/run/salt /var/run/salt/master [root@linux-node1 pillar]# chmod 777 /var/log/salt/master [root@linux-node1 pillar]# /etc/init.d/salt-master restart [root@linux-node1 pillar]# su - oldboy [oldboy@linux-node1 ~]$ salt '*' test.ping linux-node2.example.com: True linux-node1.example.com: True [oldboy@linux-node1 ~]$ 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).
本文出自 “万越天的架构师之路” 博客,请务必保留此出处http://wanyuetian.blog.51cto.com/3984643/1717249
相关文章推荐
- 《JavaScript权威指南》学习笔记 第三天 找个对象
- Java笔记--JDBC篇(一)
- 黑马程序员—JAVA基础—多态、抽象类、接口、修饰符
- 泛型+hibernate封装任意数据库数据的通用方法
- 【转】蓝牙通信-打开和关闭蓝牙设备
- 使用Windows Form 制作一个简易资源管理器
- C++模板元编程 - 函数重载决议选择工具(不知道起什么好名)完成
- Unity3D模型制作规范[转]
- Android图像色彩处理
- 制作initrd(3):/etc/initramfs-tools/modules配置文件分析
- HDU 4561 连续最大积
- opencv 摄像头灰度处理及canny处理
- JS-小技巧-国家城市联动
- MyEclipse 10破解
- tnsping延时几千到上万毫秒
- struts的控制器组件
- 新安装的centos不能用yum安装nginx解决办法
- GUI Frame(一)
- 直方图均衡化
- HDU 5570:balls 期望。。。。。。。。。。。。。。。