1、CentOS6 配置SaltStack存储库和密钥
sudo yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm
2、清楚yum过期缓存
sudo yum clean expire-cache
依次执行下面命令安装salt所用模块
sudo yum install salt-master
sudo yum install salt-minion
sudo yum install salt-ssh
sudo yum install salt-syndic
sudo yum install salt-cloud
sudo yum install salt-api
以安装salt-minion为例。安装完成启动minion
sudo service salt-minion start
3、CentOS7 配置SaltStack存储库和密钥
sudo yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el7.noarch.rpm
4、清楚yum过期缓存
sudo yum clean expire-cache
依次执行下面命令安装salt所用模块
sudo yum install salt-master
sudo yum install salt-minion
sudo yum install salt-ssh
sudo yum install salt-syndic
sudo yum install salt-cloud
sudo yum install salt-api
以安装salt-master为例。安装完成启动master
sudo service salt-master start