Installation of Saltstack

Source: Internet
Author: User
Tags saltstack

Environment:

Installation Environment: centos6.5 x64
master:192.168.0.23
minion:192.168.0.24

Installing the Epel source
/etc/init.d/iptables stopsed -i ‘/SELINUX/s/enforcing/disabled/g‘ /etc/selinux/config wget http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpmmaster安装:yum -y install salt-master salt-minionchkconfig salt-master onminion安装yum -y install salt-minionchkconfig salt-minion on
Configure Salt-master
user: rootworker_threads: 5publish_port: 4505worker_threads: 5pidfile: /var/run/salt-master.pidusers:- rootfile_roots:base:- /srv/salt/dev:- /srv/salt/dev/log_file: /var/log/salt/master
Configure Salt-master
user: rootmaster : 192.168.0.23id: node24.commaster_port: 4506log_file: /var/logs/salt_minion.log
Start salt
masterservice salt-master restartminionservice salt-minion restart

Note: Saltstack is written in the language of Python2 and is not compatible with Python3, please use the PYTHON2 environment

SALT certification

View Certifications on Master

# salt-key Accepted Keys:Denied Keys:Unaccepted Keys:node24.comRejected Keys:

Salt-key-y-a node24.com #添加单个key

# salt-key Accepted Keys:node24.comDenied Keys:Unaccepted Keys:Rejected Keys:
Test salt
salt ‘*‘ test.ping node24.com:Truenode23.com:True

This installation is complete

?

Installation 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.