First, configure Yum source and Epel source
Epel Source Download Address: http://pan.baidu.com/s/1o7NJ26u
1. Configure the Yum source
(1) Upload operating system image file to configure Yum source, mount point directory for/yum
Mkdir/yum
Mount-o Loop Centos-6.8-x86_64-bin-dvd1.iso/yum
(2) Installation of the required package
Yum-y Install Createrepo
Yum-y Install VSFTPD
2. Configure the Epel source required for saltstack (not in the networked state)
(1) Upload the Epel source of the compression package and decompression
TAR-XVF Saltstack-rhel6.tar. Gz
(2) Create a new directory, and copy the extracted files to the appropriate directory
Mkdir-p/var/ftp/pub
Cp-r/root/rhel6/*/var/ftp/pub
Service VSFTPD Start
(3) Create repo configuration file, note that the/yum here is the mirrored mount point directory
Createrepo-g/yum/repodata/*-comps.xml/var/ftp/pub/
(4) Configure Repo files
Move the previous repo file out of the/etc/yum.repos.d/directory, and then create a new file called Saltstack.repo, and fill in the following:
[Saltstack-repo]
Name=saltstack-local
Baseurl=ftp://192.168.236.100/pub
Enable=1
Gpgcheck=0
Note: 192.168.236.100 is native IP
(5) Cleaning Yum
Yum Clean All
Second, install Master and minion
1. Install Master
Yum install salt-master Salt-cloud salt-ssh salt-syndic-y
2. Install minion (need to configure Saltstack.repo files on the client)
Yum install salt-minion Salt-cloud salt-ssh salt-syndic-y
3. After installation saltstack position is/etc/salt
4. Add the IP and hostname mappings in the/etc/hosts file of the Minion host, note that the IP map name for master is best salt for consistency with the configuration file
192.168.236.100 Salt
192.168.236.101 saltstack-minion
third, start master and minion
Start Master:/etc/init.d/salt-master start
start Minion:/etc/init.d/salt-minion start