CentOS6/7 使用saltstack源安装saltstack

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

启动salt-master

service salt-master restart

加入开机启动

chkconfig salt-master on

安装salt-minion
sudo yum install salt-minion

加入开机启动

chkconfig salt-minion on

启动 salt-minion

service  salt-minion restart
安装salt-ssh
sudo yum install salt-ssh
安装salt-syndic
sudo yum install salt-syndic
安装salt-cloud
sudo yum install salt-cloud
安装salt-api
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

转载于:https://www.cnblogs.com/xiaofengfree/p/10809905.html

你可能感兴趣的:(CentOS6/7 使用saltstack源安装saltstack)