Saltstack Learning -8:web Management page (halite)

Source: Internet
Author: User
Tags saltstack

Installation Halite Method One: failed, unknown origin cause 1, install and start Salt-api
    • yum installsalt-api –y
    • service salt-api start
    • chkconfig salt-api on
2. Installing halite and its dependent files
    • yum installpython-pip –y
    • pip install--upgrade pip
    • pip install-U halite
    • pip installcherrypy
    • pip installpaste
    • yum installpython-devel gccy
    • pip installgevent
    • pip installpyopenssl
    • Pip Install tornado

创建登录用户

    • Useradd Salt
    • echo "Salt" |passwd--stdin salt

3. Modify Master configuration file

Method Two:

#yum Install git

Download code

#cd/var/www

#git clone https://github.com/saltstack/halite

Generate index.html
# cd halite/halite# ./genindex.py -C
Installing SALT-API
# yum install salt-api
Add Login User
# useradd salt# echo salt|passwd –stdin salt
Configuring the Salt Master File

Configure the salt's master file to add:

rest_cherrypy: host: 0.0.0.0 port: 8080 debug: true static: /root/halite/halite app: /root/halite/halite/index.html
external_auth:   pam:     salt: - .* - ‘@runner‘ - ‘@wheel‘

Restart Master;

# /etc/init.d/salt-master restart
Start Salt-api, start the Web interface (two startup modes)

#cd/var/www/halite/halite
(1) #nohup python2.6 server_bottle.py-d-c-l debug-s cherrypy & #不使用nohup的话为前台运行

(2) # salt-api–d---background run

Then open http://ip:8080/app it and login via Salt/salt.

Official Installation Tutorials:

Https://docs.saltstack.com/en/latest/topics/tutorials/halite.html

Saltstack Learning -8:web Management page (halite)

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.