安装 halite
方法一:失败,待查原因
1、安装并启动 salt-api
yum
installsalt - api–y
2、安装 halite 及其依赖文件
service salt - api start
chkconfig salt - api on
yum install python-pip –y
yum install python-devel gcc –y
pip install --upgrade pip
pip install -U halite
pip install cherrypy
pip install paste
创建登录用户
pip install gevent
pip install pyopenssl
pip install tornado
3、修改 master 配置文件
useradd salt
echo "salt" |passwd --stdin salt
方法二:
#yum install git
下载代码
生成 index.html
#cd /var/www
#git clone https://github.com/saltstack/halite
安装 salt-api
# cd halite/halite
# ./genindex.py -C
#yum install salt - api
添加登陆用户
配置 salt master 文件
# useradd salt
# echo salt|passwd –stdin salt
配置 salt 的 master 文件,添加:
- .*
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:
重启 master;
- '@runner'
- '@wheel'
# / etc / init.d / salt - master restart
启动 salt-api,启动 web 界面(两种启动方式)
然后打开 http://ip:8080/app ,通过 salt/salt 登陆即可. 官方安装教程:
#cd /var/www/halite/halite
(1)#nohup python2.6 server_bottle.py -d -C -l debug -s cherrypy & #不使用 nohup 的话为前台运行
(2)# salt-api –d --- 后台运行
https://docs.saltstack.com/en/latest/topics/tutorials/halite.html
来源: http://www.bubuko.com/infodetail-2452612.html