Back to Home

Install salt-master, salt-minion on RHEL / CENTOS

Salt stack · salt-master · salt-minion

Install salt-master, salt-minion on RHEL / CENTOS

Saltstack

Installation


We will install salt-master and salt-minion from the official SaltStack repository.

sudo yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-1.el7.noarch.rpm

Attention! If installing on Red Hat Enterprise Linux 7 with disabled (not subscribed to) RHEL Server Releases or RHEL Server Optional Channel repositories, add the CentOS 7 GPG key URL to the yum configuration of the SaltStack repository to install the base packages.

[saltstack-repo]
name=SaltStack repo for Red Hat Enterprise Linux $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
   	https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/base/RPM-GPG-KEY-CentOS-7

sudo yum clean expire-cache

Install salt-minion, salt-master or other Salt components:


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


After installation


Setting automatic start of salt-master service at boot time .
RHEL / CentOS 5 and 6:
chkconfig salt-master on

RHEL / CentOS 7:
systemctl enable salt-master.service


Launching the
RHEL / CentOS 5 and 6 Wizard :
service salt-master start

RHEL / CentOS 7:
systemctl start salt-master.service


Setting automatic start of salt-minion service during
RHEL / CentOS 5 and 6 boot :
chkconfig salt-minion on

RHEL / CentOS 7:
systemctl enable salt-minion.service


Minion
RHEL / CentOS 5 and 6 launch :
service salt-minion start

RHEL / CentOS 7:
systemctl start salt-minion.service


Consider the configuration in the next article Salt Configuration

→ Source: One and Two

Read Next