centos7之saltstack安装
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7之saltstack安装相关的知识,希望对你有一定的参考价值。
查阅来自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 sudo
yum 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安装的主要内容,如果未能解决你的问题,请参考以下文章