前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos7之saltstack安装

centos7之saltstack安装

作者头像
超蛋lhy
发布2018-08-31 16:08:43
5100
发布2018-08-31 16:08:43
举报
文章被收录于专栏:PythonistaPythonista

查阅来自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:

代码语言:javascript
复制
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:

代码语言:javascript
复制
[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:

代码语言:javascript
复制
[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

代码语言:javascript
复制
systemctl start salt-master.service

Minion

配置Minion开机自动启动:

RHEL/CentOS 7

代码语言:javascript
复制
systemctl start salt-minion.service
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017-09-08 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • To install using the SaltStack repository:
  •   Run one of the following commands based on your version to import the SaltStack repository key:
  • Save the following file to /etc/yum.repos.d/saltstack.repo:
  • Version 7 and 6:
  • Version 5:
  • Master启动
  • Minion
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档