Chinaunix首页 | 论坛 | 博客
  • 博客访问: 17870
  • 博文数量: 4
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 35
  • 用 户 组: 普通用户
  • 注册时间: 2015-06-08 10:38
文章分类

全部博文(4)

文章存档

2015年(4)

我的朋友

分类: 系统运维

2015-06-10 16:46:02

saltstack
安装
1:rpm
# centos 6 下载下面rpm
wget -O epel.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的配置


阅读(316) | 评论(0) | 转发(0) |
0

上一篇:office web apps的安装

下一篇:zabbix所有键值

给主人留下些什么吧!~~