Install Saltstack__linux under Linux

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.