saltstack web uiweb平台界面
saltapi项目主页:http://salt-api.readthedocs.org/en/latest/
halite 项目主页:https://github.com/saltstack/halite
官方文档:https://github.com/saltstack/
master装web界面
- cd /var/www 下载halite
地址https://github.com/saltstack/halite - 生成index.html文件
解压并进入halite目录下 - cd halite/halite
cd halite/halite
./genindex.py -C
- 安装salt-api
yum install salt-api
- 建立用户salt-api的用户(非root)
useradd -M -s /sbin/nologin slsapi echo 'slsapi' | passwd slsapi --stdin
- 在master端添加配置文件 ,在/etc/salt/master.d中加入saltweb.conf:
vi /etc/salt/master.d/saltweb.conf
,添加以下内容:
rest_cherrypy: host: 0.0.0.0 port: 8080 debug: true static: /var/www/halite/halite #修改成本身的存储路径 app: /var/www/halite/halite/index.html external_auth: pam: slsapi: #此处修改成本身的用户 - .* - '@runner' - '@wheel'
而后重启master。systemctl restart salt-master
html
创建用户测试:
salt -a pam \* test.ping
输入用户和密码 如看到minion返回信息 则表示登录验证成功;
- 配置salt-api启动项,并启动
设置api开机自启python
systemctl enable salt-api.service
修改服务文件vi /usr/lib/systemd/system/salt-api.service
,修改ExecStart项git
ExecStart=/usr/bin/python /home/software/halite-master/halite/server_bottle.py -d -C -l debug -s cherrypy (这步骤可省略)
而后启动salt-apigithub
systemctl daemon-reload systemctl start salt-api
如无效则用下面方法启动
cd /var/www/halite/halite
salt-api -d
或
python server_bottle.py -d -C -l debug -s cherrypy
登陆测试:
http://192.168.1.230:8080/app/

salt web管理平台:Oneops的部署
https://github.com/net592/OneOps
部署环境:centos6.2; django-1.9.5;python-2.7.11
git并无给出部署文档,因此如下只是本身根据报错尝试部署
1.git克隆源代码web
git clone https://github.com/net592/OneOps.git
1
2.安装依赖包django
pip install django-crontab
pip install django-celery
pip install kombu
pip install billiard
pip install pytz
centos