salt 001
2015-06-17 14:39
225 查看
saltstack
安装
1:rpm
# centos 6 下载下面rpm
wget -O epel.rpm http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ## 安装epel
rpm -Uvh epel.rpm
yum -y install salt-master or yum -y install salt-minion
配置
master (控制端)
;;
;;
minion
;;
;;
测试
接受salt-minion的认证请求(在master执行)
[root@localhost ~]# salt-key -L ;;list key
Accepted Keys: ;;已允许
hahala
Denied Keys: ;;拒绝
Unaccepted Keys: ;;未允许 master和minion联通的话,minion的id会出现在这里,如果没有出现,请配置或关闭防火墙,并重启服务
hahaha
Rejected Keys:
[root@localhost ~]# salt-key -a hahaha ;; -a 允许单个 -A 允许所有 -y yes -d 删除单个(Acceptd) -D 删除所有
The following keys are going to be accepted:
Unaccepted Keys:
hahaha
Proceed? [n/Y] y
Key for minion hahaha accepted.
[root@localhost ~]# salt 'hahaha' test.ping
hahaha:
True
联通OK。
p.s. 有时间再翻 master和minion的配置
本文出自 “温柔” 博客,请务必保留此出处http://dangyibo.blog.51cto.com/4219248/1662737
安装
1:rpm
# centos 6 下载下面rpm
wget -O epel.rpm http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ## 安装epel
rpm -Uvh epel.rpm
yum -y install salt-master or yum -y install salt-minion
配置
master (控制端)
;;
;;
minion
;;
;;
测试
接受salt-minion的认证请求(在master执行)
[root@localhost ~]# salt-key -L ;;list key
Accepted Keys: ;;已允许
hahala
Denied Keys: ;;拒绝
Unaccepted Keys: ;;未允许 master和minion联通的话,minion的id会出现在这里,如果没有出现,请配置或关闭防火墙,并重启服务
hahaha
Rejected Keys:
[root@localhost ~]# salt-key -a hahaha ;; -a 允许单个 -A 允许所有 -y yes -d 删除单个(Acceptd) -D 删除所有
The following keys are going to be accepted:
Unaccepted Keys:
hahaha
Proceed? [n/Y] y
Key for minion hahaha accepted.
[root@localhost ~]# salt 'hahaha' test.ping
hahaha:
True
联通OK。
p.s. 有时间再翻 master和minion的配置
本文出自 “温柔” 博客,请务必保留此出处http://dangyibo.blog.51cto.com/4219248/1662737
相关文章推荐
- PEP 0008 -- Style Guide for Python Code
- FAQ13878][Audio APP]收音机 APP 添加耳机hook键,以实现播放、暂停的功能
- PHP学生笔记:PHP中的面向对象编程
- how to print the spend time of one function
- iOS开发内存管理
- iOS中Foundation框架NSString基本用法总结
- adb不响应
- Redis学习第四课:Redis List类型及操作
- 神奇:java中float,double,int的值比较运算
- Python实现的彩票机选器实例
- TCP状态
- C#中的数组操作练习
- 第十五周程序阅读四
- 信息与计算科学
- 【uiautomator】报告简介及查看
- 关于NIO一些优化
- 重写ListView实现下拉刷新上拉加载
- UNDO表空间使用率过高
- TCP/IP Socket 编程读书笔记
- OCX中主Frame中处理view(备用)