Installation of salt

Source: Internet
Author: User
Tags firewall

Brief introduction

Salt is:    
  a configuration management system, capable of maintaining remote nodes into defined states (for example, Ensuri ng that    
specific packages are installed and specific services are running)    
  a distributed remote Execution system u Sed to execute commands and query data on the remote nodes, either individually    
or by arbitrary selection criteria

Prerequisite: Has installed Epel third party source;

1,at Master

echo "Master_ip     master_hostname" >>/etc/hosts    
echo "slave_ip     slave_hostname" >>/etc/hosts    
Yum install salt-y    
yum install salt-master-y yum install salt-minion-y    

Configuration file directory:/etc/salt

mainly including master,minion

Modify the interface inside Master

#interface: 0.0.0.0

Interface:master_ip

-------------------

Modify Master inside the Minion

#master: Salt

MASTER:MASTER_IP-

------------------

/etc/init.d/salt-master start

/etc/init.d/salt-minion start

+++++++++++++++++++++++++

2,at Client

echo "Master_ip master_hostname" >>/etc/hosts

echo "Slave_ip slave_hostname" >>/etc/hosts

Yum Install Salt-y

Yum instal salt-minion-y

--------------------

Configuration file directory:/etc/salt

-------------------

Modify Master inside the Minion

#master: Salt

Master:master_ip

-------------------

/etc/init.d/salt-minion start

++++++++++++++++++++++++++++++++

3,key Management

Salt-key-l----------------View all key information

salt-key-a xxx-----------Approve XXX's certification

Salt-key-a---------------approve all client authentication requests

4, note selinux shutdown, firewall port 4505,4506 to open

-A rh-firewall-1-input-m state--state new,established,related-j ACCEPT

-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 4505-j ACCEPT

-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 4506-j ACCEPT

Source: http://tntdba.blog.51cto.com/1199791/1136609

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.