First knowledge of Saltstack

Source: Internet
Author: User
Tags saltstack

1.1        Masternode

Salt Master you need to bind the system 2 a TCP ports, respectively, are 4505 and the 4506 .

Yum Install Salt-master

Configuration Master Boot auto Start :

Chkconfig Salt-master on

Start Master:

Service Salt-master Start

Salt Master can also be at the front desk to Debug mode starts, which greatly increases the command output :

Salt-master-l Debug

1.2        Minionnode

Yum Install Salt-minion

Configuration Minion Boot auto Start :

Chkconfig salt-minion on

Start Minion:

Service Salt-minion Star

Modifying a configuration file /etc/salt/minion

Master:saltstack-master

Salt Minion can also be at the front desk to Debug mode starts, which greatly increases the command output :

Salt-minion-l Debug

1.3        Handshake

List Minion:

Salt-key or Salt-key-l

Accept Minion:

Salt-key–a saltstack-minion
Or
Salt-key–a

Test:

Salt ' * ' test.ping
Salt ' * ' Sys.doc
Salt ' * ' cmd.run ' ls-l/etc '
Salt ' * ' pkg.install vim


This article is from "Huboss's automated operation and Maintenance Road" blog, please be sure to keep this source http://huboss.blog.51cto.com/9883568/1743460

First knowledge of Saltstack

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.