Installation Halite Method One: failed, unknown origin cause 1, install and start Salt-api
yum
install
salt-api –y
service salt-api start
chkconfig salt-api on
2. Installing halite and its dependent files
yum
install
python-pip –y
pip
install
--upgrade pip
pip
install
-U halite
pip
install
cherrypy
pip
install
paste
yum
install
python-devel
gcc
–y
pip
install
gevent
pip
install
pyopenssl
- 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)