一、官方配置yum源
Salt Project Package Repo
选择centos7 major版本
更换yum
sudo rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/3003/SALTSTACK-GPG-KEY.pub curl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/3003.repo | sudo tee /etc/yum.repos.d/salt.rep sudo yum clean expire-cache
二、在master端
sudo yum install salt-master -y
三、在minion端
sudo yum install salt-minion -y
修改配置文件
cd /etc/salt/
vi minion
把 #master:salt
改为:master:主机名/IP
四、启动服务
systemctl start salt-master.service
systemctl start salt-minion.service
五、认证
在master上
salt-key -L
salt-key -A
安装部署完成



