一 安装salt
1.1 安装指定版本的salt
解决pycryptodome的上游错误
rpm -e --nodeps python2-pycryptodomex
yum install python-crypto
运行命令以安装SaltStack存储库和密钥:
rpm --import https://repo.saltstack.com/yum/redhat/7/x86_64/archive/2016.11.10/SALTSTACK-GPG-KEY.pub
配置salt yum源
more /etc/yum.repos.d/saltstack.repo
[saltstack-repo]
name=SaltStack repo for RHEL/CentOS $releasever
baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/archive/2016.11.10
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/archive/2016.11.10/SALTSTACK-GPG-KEY.pub
清除yum缓存
yum clean expire-cache
安装salt-master
yum install salt-master
启动salt服务
systemctl restart salt-master
查看salt版本
salt --version
salt 2016.11.10 (Carbon)
配置开机启动
systemctl list-unit-files|grep salt
systemctl enable salt-master
来源:51CTO
作者:纪仁旺
链接:https://blog.51cto.com/11676712/2475405