In our current infrastructure, we have one master and three minions. Our master and one minion are running CentOS 7.5 and the rest of the VMs are on Ubuntu 16.04. The process will be sort of different on both distros but some steps will be the same on both.
Installing Salt with package managers
Installing CentOS yum
Previously, Salt was only available through the EPEL repositories. But now SaltStack has its own repository that we can import and perform the install from there.
First, install SSH into the master VM and run the following command to import the SaltStack repository:
[dsala@salt ~]$ sudo yum install \
https://repo.saltstack.com/yum/redhat/salt-repo-latest.el7.noarch.rpm
Optionally, you can run yum clean expire-cache...