SaltStack安装(CentOS7.x)
2016-01-14 15:30
513 查看
http://www.cnblogs.com/qlwang/p/5036488.html
安装基础:
参考文档:https://docs.saltstack.com/en/latest/topics/installation/rhel.html
1.导入SaltStack仓库key:
wget https://repo.saltstack.com/yum/rhel7/SALTSTACK-GPG-KEY.pub
rpm --import SALTSTACK-GPG-KEY.pub
rm -f SALTSTACK-GPG-KEY.pub
2.创建新的YUM源文件并“/etc/yum.repos.d/saltstack.repo”编辑如下内容
####################
# Enable SaltStack's package repository
[saltstack-repo]
name=SaltStack repo for RHEL/CentOS 7
baseurl=https://repo.saltstack.com/yum/rhel7
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/rhel7/SALTSTACK-GPG-KEY.pub
3.安装SaltStack软件
yum clean expire-cache
yum update
安装salt-minion, salt-master
yum -y install salt-master
yum -y install salt-minion
4.修改配置文件
master:
vi /etc/salt/master
interface: 192.168.76.50
minion:
vi /etc/salt/minion
master: 192.168.76.50
id: minion_ip
注意:master:、id:和interface:后面有一个空格,如果没有启动的时候回出现错误;
5.启动服务:
Master:
chkconfig salt-master on
systemctl restart salt-master.service
Minion:
chkconfig salt-minion on
systemctl restart salt-minion.service
6,测试saltstack
查看minion列表:
salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
Docker
Rejected Keys:
接收所有key:
salt-key -A
在这个过程中会提示Y确认,确认即可;
显示结果:
Accepted Keys:
Docker
Denied Keys:
Unaccepted Keys:
Rejected Keys:
简单ping测试:
salt 'Docker' test.ping
Docker:
True
常见问题:
minion无法连接master
解决问题方法:
查看debug信息:salt-minion -l debug
安装基础:
参考文档:https://docs.saltstack.com/en/latest/topics/installation/rhel.html
1.导入SaltStack仓库key:
wget https://repo.saltstack.com/yum/rhel7/SALTSTACK-GPG-KEY.pub
rpm --import SALTSTACK-GPG-KEY.pub
rm -f SALTSTACK-GPG-KEY.pub
2.创建新的YUM源文件并“/etc/yum.repos.d/saltstack.repo”编辑如下内容
####################
# Enable SaltStack's package repository
[saltstack-repo]
name=SaltStack repo for RHEL/CentOS 7
baseurl=https://repo.saltstack.com/yum/rhel7
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/rhel7/SALTSTACK-GPG-KEY.pub
3.安装SaltStack软件
yum clean expire-cache
yum update
安装salt-minion, salt-master
yum -y install salt-master
yum -y install salt-minion
4.修改配置文件
master:
vi /etc/salt/master
interface: 192.168.76.50
minion:
vi /etc/salt/minion
master: 192.168.76.50
id: minion_ip
注意:master:、id:和interface:后面有一个空格,如果没有启动的时候回出现错误;
5.启动服务:
Master:
chkconfig salt-master on
systemctl restart salt-master.service
Minion:
chkconfig salt-minion on
systemctl restart salt-minion.service
6,测试saltstack
查看minion列表:
salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
Docker
Rejected Keys:
接收所有key:
salt-key -A
在这个过程中会提示Y确认,确认即可;
显示结果:
Accepted Keys:
Docker
Denied Keys:
Unaccepted Keys:
Rejected Keys:
简单ping测试:
salt 'Docker' test.ping
Docker:
True
常见问题:
minion无法连接master
解决问题方法:
查看debug信息:salt-minion -l debug
相关文章推荐
- Go在linux下的安装
- linux commond
- Linux服务器配置——搭建SVN服务器
- 系统上电后 bootloader的执行流程及 ARM Linux的启动过程分析
- 虚拟机上迁移Linux系统
- Linux查看文件编码格式及文件编码转换
- Linux查看CPU和内存使用情况
- Red Hat Enterprise Linux Server6.5使用CentOS yum源更新的方法
- Linux输入子系统:多点触控协议 -- multi-touch-protocol.txt【转】
- Linux find 等 查找文件
- Linux 磁盘分区
- Linux VIM配置方案
- LVS -linux L4 load balance
- Linux程序编译速度提高方法
- Linux安装配置php环境的方法
- linux 手动安装gcc
- 在CentOS 6.5 x64上部署RabbitMQ 3.5.6
- 如何手动释放Linux内存的方法
- Ubuntu 设置环境变量
- SecureCRT中常用linux命令 和一些cp命令