📜 ⬆️ ⬇️

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

Saltstack

Installation


Installation of salt-master and salt-minion will be done from the official SaltStack repository.

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

Attention! When installing on Red Hat Enterprise Linux 7 with disconnected (not subscribed to) RHEL Server Releases or RHEL Server Optional Channel repositories, add the CentOS 7 GPG key URL to the SaltStack yum repository configuration 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 the automatic start of the salt-master service at boot time .
RHEL / CentOS 5 and 6:
 chkconfig salt-master on 

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


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

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


Configuring the automatic start of the salt-minion service at boot time
RHEL / CentOS 5 and 6:
 chkconfig salt-minion on 

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


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

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


Configuration will be discussed in the next article, Salt Configuration

→ Source: one and two

Source: https://habr.com/ru/post/315054/


All Articles