Salt-stack Installation

Source: Internet
Author: User

First, the basic concept

saltstack based on C/S architecture, server-side master and client minions

Ii. installation:

Specific operation can be selected according to the official website, here choose to install the latest version

Yum Install https://repo.saltstack.com/yum/redhat/salt-repo-2015.8-2.el6.noarch.rpm

yum Clean Expire-cache

yum Install Salt-master (server side)

yum install salt-minion(客户端)

yum install salt-ssh

yum install salt-syndic

yum install salt-cloud

yum install salt-api

Third, the configuration file: /etc/salt/master

master End:

 port: 4505 (publish_port): Salt's message publishing system 
4506 (ret_port): Salt client communicates with the server port

minion End:

Configuration file:/etc/salt/minion


Master: Server Host Name

ID: Client Host Name

Configuration file Note format unification

master:192.168.1.1
Id:minion-192-168-1-2

Start the service:

 /etc/init.d/salt-minion  start

   /etc/init.d/salt-master start

Third, certification

Like Puppet, the Salt master and minions are communicating through certificates, so there is a certificate trust issue.

On the master side: Salt-key-l View currently required keys (both master and minions need to be enabled)

Salt-key-a 192.168.1.2 Accept 192.168.1.2 's certificate

detects if master and two minion communication is normal :

Salt "192.168.1.2" test.ping

appear TrueThis indicates that the service-to-client communication is normal and the basic environment is successfully built.



Salt-stack 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.