Salt WebUI
saltstack web uiweb平台界面- saltapi项目主页: http://salt-api.readthedocs.org/en/latest/
- halite 项目主页: https://github.com/saltstack/halite
- 官方文档 : https://github.com/saltstack/
|
1
2
3
4
|
cd /var/www/
git clone https://github.com/saltstack/halite
cd halite/halite
./genindex.py -C
|
|
1
|
apt-get install salt-api 或 yum install salt-api
|
在master端添加配置文件
在/etc/salt/master.d中加入saltweb.conf,需要用到salt的eauth系统,添加如下配置|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
rest_cherrypy:
host: 0.0.0.0
port: 8080
debug: true
disable_ssl: True
static: /var/www/halite/halite
app: /var/www/halite/halite/index.html
external_auth:
pam:
salt:
- .*
- '@runner'
- '@wheel'
|
- 重启master;
1/etc/init.d/salt-master restart
- 添加登陆用户
12useradd saltecho salt | passwd –stdin salt
- 建立用户后进行测试
输入用户和密码 如看到minion返回信息 则表示登陆验证成功1salt -a pam \* test.ping
启动 salt-api
|
1
2
3
|
salt-api -d或
cd /var/www/halite/halite
python server_bottle.py -d -C -l debug -s cherrypy
|