saltstack-本地安装rpm方式
2017-03-02 22:04
351 查看
1. 基本环境
Centos 6.6Python 2.6.6
Salt 2016.11需要本地安装
2. 安装部署
2.1 repo地址
https://repo.saltstack.com/yum/redhat/6.6/x86_64/2016.11/2.2 httpd环境
# yum install httpd -y (此前以及安装过了可跳过)
2.3 yum源部署
如果当前不存在yum这个文件夹就创建一个# mkdir /var/www/html/yum
当hpptd安装好之后,默认yum源路径为
# cd /var/www/html/yum
将saltStack 的所有依赖包以及安装包提前预置到Apache中作为本地yum源使用
启动Apache以验证当前配置是否成功,在此之前先确定你当前防火墙的状态是关闭的
# service httpd start # service httpd status
当前步骤完成后就可以去修改yum源的地址
# vim /etc/yum.repos.d/salt-latest.repo
[salt-latest] name=SaltStack Latest Release Channel for RHEL/Centos $releasever baseurl=http://192.168.49.137/yum/saltstack enabled=1 gpgchec=1
修改完yum的配置之后,启动yum之前先清除一次yun的缓存
# yum clean all # yum list
清除成功之后就可以安装saltStack
由于yum源来自本地 所以无法提供key的认证 此处跳过认证直接安装
# yum install -y salt-master –nogpgcheck # yum install -y salt-api --nogpgcheck # yum install -y salt-ssh –nogpgcheck # yum install -y salt-minion--nogpgcheck
3. 简单配置
# vim /etc/salt/master
- #interface: 0.0.0.0 + interface: 192.168.49.137
# vim /etc/salt/minion
- #master: salt + master: 192.168.49.137
Minion Key管理
# salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
hadoop1
Rejected Keys:
# salt-key -A 或者 # salt-key -a hadoop1
# salt-key –L
Accepted Keys: hadoop1 Denied Keys: Unaccepted Keys: Rejected Keys:
4. 测试
# salt -S 192.168.49.137 test.ping # salt hadoop1 test.ping # salt '*' test.ping
相关文章推荐
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式
- saltstack-本地安装rpm方式