首页 > 其他 > 详细

saltstack

时间:2018-07-04 10:11:11      阅读:189      评论:0      收藏:0      [点我收藏+]

saltstack简介

作者住在盐湖城,称为salt,而当时各种stack火,故名saltstack。他有三种模式

  1. 本地模式local
  2. master/minion 主/奴才
  3. slat ssh

三大功能

  1. 远程执行命令
  2. 配置管理--状态管理--按照你的思路一步一步走下去
  3. 云管理 创建云主机,添加监控 

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

 

saltstack

原文:https://www.cnblogs.com/jokerbj/p/9261503.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!