Saltstack Learning 01:saltstack Quick Installation

Source: Internet
Author: User
Tags saltstack

Below are Redhat6 and the CENTOS6 the installation process , Centos5 students jump directly to the back. . Ultra-Fast installation method .

1.Installation Source1.1InstallationEpelSource

# cd/usr/local/src/

# wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

# RPM-IVH epel-release-6-8.noarch.rpm

1.2InstallationRpmforge

This step is important in Redhat 6 and the CentOS 6 of the Epel not on the source PYTHON-JINJA2 , I started installing the card here. .

# wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

# RPM-UVH rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

2.Install dependent packages

# yum Install Python-jinja2

3 InstallationSaltstack

only one installation is required Master all other installations minion.

3.1InstallationSalt-master

# yum-y Install Salt-master enablerepr=epel-testing

3.2Installationsalt-minion

#yum-y Install salt-minion enablerepr=epel-testing

Prevent Minion drop line, upgrade ZEROMQ

RPM-UVH python26-zmq-14.3.1-3.el5.x86_64.rpm zeromq-4.0.4-2.el5.x86_64.rpm

4.ConfigurationSaltstack4.1 MinionConfiguration

# cat /etc/salt/minion | grep "^ Master"

master:192.168.0.2

I see it clearly. Master There are two spaces in front of , This line of code means that I want to connect Saltstack of the Master is a 192.168.0.2

4.2 MasterConfiguration

# Cat/etc/salt/master | grep ' ^ interface '

interface:192.168.0.2

Master Monitor 192.168.0.2, There are two spaces in front of the old, otherwise the error will be started. .

5.StartSaltstack5.1StartMaster

# service Salt-master Start

starting Salt-master daemon: [ OK ]

5.2StartMinion

#service salt-minion Start

starting salt-minion daemon: [ OK ]

6.TestSaltstack

Turn on the firewall

-A input-s 192.168.0.0/16-p tcp-m tcp--dport 4505-j ACCEPT

-A input-s 192.168.0.0/16-p tcp-m tcp--dport 4506-j ACCEPT

the next commands are all in Master on the execution

6.1ViewMinionList

# salt-key-l

Accepted Keys:

unaccepted Keys:

Minion1

rejected Keys:

6.2Accept AllKey

# salt-key-a

prompt in the prompt y Confirmation is ready . you will then be able to Minion Send command.

6.3Simple test

# salt ' * ' test.ping

Minion1 :

True

1.fAdditionalREDHAT5The installation method

If you are Redhat 5 version, go to the following Operation

7.1.Quick InstallationMinionThe method

# wget--no-check-certificate-o-http://bootstrap.saltstack.org | Sh

7.2.General installation Methods7.2.1installation Source

# RPM-IVH http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm

http://mirrors.kernel.org/fedora-epel/7/x86_64/

7.2.2installationsalt-minion

Yum Install Salt-minion

7.2.3.   installationSalt-master

Yum Install Salt-master

8. Conclusion

Saltcompared to the installation methodpuppetA lot of simple, worried beginners confused so this did not talk too much configuration, focus on installation, finally came a simpletest.pingTest. Follow-up articles you can focus on ourTtlsaas wellSaltstackChinese network, of course, there are official sites


Saltstack Learning 01:saltstack Quick Installation

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.