Salt Source Installation

Source: Internet
Author: User

What is salt?

A new approach to infrastructure management, easy to deploy, can be run in minutes, scalability, easy to manage tens of thousands of servers, fast enough, the server between the second-level communication.

The salt bottom uses a dynamic connection bus that allows it to be used for orchestration, remote execution, configuration management, and so on.

Offline install only energy code to engage, machine python environment 2.6.6,centos6.3, install the main is to rely too much on the package, is now organized as follows, install the following dependencies before installation

Name
Jinja2 Https://pypi.python.org/pypi/Jinja2
Requests http://www.python-requests.org/en/latest/user/install/#install
M2crypto Https://pypi.python.org/pypi/M2Crypto
Markupsafe Https://pypi.python.org/pypi/MarkupSafe
Msgpack-python https://pypi.python.org/pypi/msgpack-python/
Pyyaml https://pypi.python.org/pypi/PyYAML/
Pyzmq https://pypi.python.org/pypi/pyzmq/
Salt Https://pypi.python.org/pypi/salt
CherryPy-3.7.0 (requires installation if using SALT-API) Https://pypi.python.org/pypi/CherryPy
Ws4py (requires installation if using SALT-API) Https://pypi.python.org/pypi/ws4py

After installing the above dependent packages in sequence

mkdir /etc/Salt #创建配置目录 cp  ${salt_root_dir}/conf/master  /etc/Salt  # Copy master configuration file cp  ${salt_root_dir}/conf/minion/etc/salt #拷贝minion的配置文件 (if you do not intend to use this machine, do not copy)

Edit/etc/salt/master, note that the configuration file uses the YAML format, and note that the line breaks are consistent

 # cat /etc/salt/masteruser:rootworker_ Threads:  10  publish_port:  4505  ret_port:  4506  syndic_master_port:  4506  pidfile: /var/run/salt-master.pidroot_dir: //var/log/salt_master.lognodegroups:group_all:   '  

Edit/etc/salt/minion, where all Minion IDs must be unique and not conflicting

Cat /etc/salt/minionID: host-4127.0. 0.1   4506 0/var/logs/ salt/salt_minion.logfile_roots:  Base:    -/srv/salt/pillar_roots:  Base:    -/srv/pillar

Start Salt-master

# Salt-master

Start Salt-minion

#salt-minion

Execute command

# salt-key laccepted keys:unaccepted keys:host-4rejected keys:# salt-key-a host-4 # Salt-key laccepted keys:host-4unaccepted keys:rejected Keys:

Execute command

' * ' ' Uname-ar ' host-4:    Linux host-42.6.  -279.el6.x86_64 #15:2012 x86_64 x86_64 x86_64 gnu/linux

Done

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