首页 > 代码库 > salt-ssh安装salt-minion
salt-ssh安装salt-minion
一、安装salt
yum install -y http://repo.saltstack.com/yum/redhat/salt-repo-2016.3-1.el7.noarch.rpm
二、修改默认源
cat /etc/yum.repos.d/salt-2016.3.repo [salt-2016.3] name=SaltStack 2016.3 Release Channel for RHEL/Centos $releasever #baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/2016.3 baseurl=http://debian.ustc.edu.cn/salt/yum/redhat/$releasever/$basearch/2016.3 failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/saltstack-signing-key
三、 安装salt-minion
cp /etc/yum.repos.d/salt-2016.3.repo /srv/salt/ salt-ssh ‘192.168.56.103‘ pkg.install http://repo.saltstack.com/yum/redhat/salt-repo-2016.3-1.el7.noarch.rpm salt-ssh ‘192.168.56.103‘ cp.get_file salt://salt-2016.3.repo /etc/yum.repos.d/salt-2016.3.repo salt-ssh ‘192.168.56.103‘ pkg.install salt-minion
四、配置salt-minion
1、编辑 /srv/salt/192.168.56.103_minion.conf cat /srv/salt/192.168.56.103_minion.conf master: 192.168.56.102 id: 192.168.56.103
2、配置salt-minion
salt-ssh ‘192.168.56.103‘ cp.get_file salt://192.168.56.103_minion.conf /etc/salt/minion.d/192.168.56.103_minion.conf salt-ssh ‘192.168.56.103‘ service.enable salt-minion salt-ssh ‘192.168.56.103‘ service.restart salt-minion
五、在master端口添加key
salt-key -a 192.168.56.10
本文出自 “武陵荒草” 博客,请务必保留此出处http://penguintux.blog.51cto.com/3021117/1857480
salt-ssh安装salt-minion
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。