saltstack
时间:2018-07-04 10:11:11
收藏:0
阅读:189
saltstack简介
作者住在盐湖城,称为salt,而当时各种stack火,故名saltstack。他有三种模式
- 本地模式local
- master/minion 主/奴才
- slat ssh
三大功能
- 远程执行命令
- 配置管理--状态管理--按照你的思路一步一步走下去
- 云管理 创建云主机,添加监控
saltstack初识
1. master端安装
[root@joker ~]# yum install salt-master -y
[root@joker ~]# systemctl start salt-master
2. 奴才端安装
[root@Poppy ~]# yum install salt-minion -y
奴才配置文件修改,告知master
16行指向master,78行默认是fqdn完整主机名
[root@Poppy ~]# cat /etc/salt/minion |grep -v "#" master: master_ip 域名也是可以的
[root@Poppy ~]# systemctl start salt-minion
3. master进行奴才端的授权认证
1)master
[root@joker master]# tree /etc/salt/pki/ /etc/salt/pki/ └── master ├── master.pem 私钥 ├── master.pub 公钥 ├── minions ├── minions_autosign ├── minions_denied 无权限的主机 ├── minions_pre 待确认的主机 └── minions_rejected 拒绝的主机
2)minion
原文:https://www.cnblogs.com/jokerbj/p/9261503.html
评论(0)