Saltstack Installation Chapter

Source: Internet
Author: User
Tags saltstack

First, the basic introduction
1. Introduction
Salt is a basic platform management tool
Salt is a configuration management system that maintains remote nodes that are scheduled to be in a state
Salt is a distributed remote execution system used to execute commands and query data on remote nodes

Core features of 2.salt:
Sending a command to a remote system is parallel rather than serial
Protocols that use secure encryption
Use the smallest and fastest network load
Improve the simple programming interface

3.salt Advantages:
Saltstack is written in Python, which is the equivalent of a lightweight device.
The Saltstack communication layer is implemented using ZEROMQ, making it fast
Saltstack is open source, you can write your own module via Python.

4.salt Port Description:
Salt-master starts two ports when booting
4505: Publish a private port for a salt message
4506: Port for client-to-server communication

Second, install Saltstack under CentOS:

1. Installation Environment:

System: CentOS6.5:

Server side: 10.10.100.60      masterclient1 end: 10.10.100.61     Client1client2 end: 10.10.100.62     Client2

2. Install Saltstack (hereinafter referred to as salt)

1.> Installing the Epel Source:

CentOS6 download Rpmwget-o epel.rpm http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm  ( Installation of both server and client) RPM-UVH epel.rpm

2.> Install Master (server side)

Yum-y Install salt-master# When the installation is complete, the configuration file is/etc/salt/master

3.> Installing minion (client)

Yum-y Install salt-minion# When the installation is complete, the configuration file is/etc/salt/minion

3. Configure Saltstack:

Master configuration

#cat/etc/salt/master | grep ' ^ #interface ' interface:  

Minion Configuration

#cat/etc/salt/minion | grep "^# Master" master:10.10.100.60# see that there are two spaces in front of master, this line of code indicates that the master of the Saltstack I want to connect to is 10.10.100.60

Start Saltstack

Start the master side:

#/etc/init.d/salt-master startstarting salt-master daemon: [OK]

To start the Minion side:

#/etc/init.d/salt-minion startstarting salt-minion daemon:                               [  OK  ]
Test Saltstack

Execute the following command on master:

1. View Minion List

# salt-key-laccepted keys:denied keys:unaccepted keys:client1client2rejected Keys:

2. Accept All Keys

# salt-key-a-y

3. Simple test

#salt ' * ' Test.pingclient1:    Trueclient2:    True

This saltstack installation is basically done!

Knowledge points to be aware of:

The 1.saltstack Master side does not need to restart the service after modifying the configuration.

Operation after changing hostname:

1.minion End:/etc/salt/minion_id     //Empty/etc/salt/pki     //delete 2.master end: salt-key-d salt_client-y//Reject Minion End Key3. Then restart the Minion-side service

Reference Document: https://www.ttlsa.com/saltstack/install-saltstack-on-linux/

Saltstack Installation Chapter

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.