首页 > 其他 > 详细

centos7之saltstack安装

时间:2017-09-08 09:25:40      阅读:134      评论:0      收藏:0      [点我收藏+]

查阅来自salt官网:http://docs.saltstack.cn/topics/installation/rhel.html

To install using the SaltStack repository:

  Run one of the following commands based on your version to import the SaltStack repository key:

Version 7:

rpm --import https://repo.saltstack.com/yum/redhat/7/x86_64/latest/SALTSTACK-GPG-KEY.pub

Version 6:

rpm --import https://repo.saltstack.com/yum/redhat/6/x86_64/latest/SALTSTACK-GPG-KEY.pub

Version 5:

wget https://repo.saltstack.com/yum/redhat/5/x86_64/latest/SALTSTACK-EL5-GPG-KEY.pub
rpm --import SALTSTACK-EL5-GPG-KEY.pub
rm -f SALTSTACK-EL5-GPG-KEY.pub

Save the following file to /etc/yum.repos.d/saltstack.repo:

Version 7 and 6:

[saltstack-repo]
name=SaltStack repo for RHEL/CentOS $releasever
baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-GPG-KEY.pub

Version 5:

[saltstack-repo]
name=SaltStack repo for RHEL/CentOS $releasever
baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-EL5-GPG-KEY.pub

Run sudo yum clean expire-cache.

Run sudoyum update.

Install the salt-minion, salt-master, or other Salt components:

 

Master启动

配置master开机自动启动:

RHEL/CentOS 7

systemctl start salt-master.service

Minion

配置Minion开机自动启动:

RHEL/CentOS 7

systemctl start salt-minion.service

 

 

centos7之saltstack安装

原文:http://www.cnblogs.com/pyyu/p/7492914.html

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