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

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.rpmAttention! 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-cacheInstall 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-apiAfter installation
Setting automatic start of salt-master service at boot time .
RHEL / CentOS 5 and 6:
chkconfig salt-master onRHEL / CentOS 7:
systemctl enable salt-master.serviceLaunching the
RHEL / CentOS 5 and 6 Wizard :
service salt-master startRHEL / CentOS 7:
systemctl start salt-master.serviceSetting automatic start of salt-minion service during
RHEL / CentOS 5 and 6 boot :
chkconfig salt-minion onRHEL / CentOS 7:
systemctl enable salt-minion.serviceMinion
RHEL / CentOS 5 and 6 launch :
service salt-minion startRHEL / CentOS 7:
systemctl start salt-minion.serviceConsider the configuration in the next article Salt Configuration
→ Source: One and Two