Search by Module
Search by Words
Search Projects
Most Popular
Top Python APIs
Popular Projects
Java
Python
JavaScript
TypeScript
C++
Scala
Blog
Project: dzhops
(GitHub Link)
dzhops-master
managekeys
models.py
views.py
urls.py
tests.py
__init__.py
utils.py
admin.py
replacedata
models.py
views.py
urls.py
forms.py
tests.py
__init__.py
admin.py
saltstack
util.py
saltapi.py
models.py
views.py
urls.py
tests.py
__init__.py
admin.py
index
models.py
views.py
urls.py
forms.py
tests.py
__init__.py
admin.py
hostlist
form.py
models.py
views.py
urls.py
tests.py
__init__.py
admin.py
LICENSE
record
models.py
views.py
urls.py
tests.py
__init__.py
admin.py
templates
profile.html
salt_update.html
index_upload.html
repair_history_data.html
registration
logged_out.html
login.html
base.html
record_detail.html
test.html
record_list.html
salt_routine.html
index.html
manage_keys.html
salt_execute.html
asset_list.html
salt_deploy.html
manage.py
dzhops
wsgi.py
urls.py
__init__.py
settings.py
__init__.py
README.md
scripts
slapi.py
data_acquisition.py
prc.py
newtest
models.py
views.py
urls.py
tests.py
__init__.py
admin.py
.gitignore
static
bootstrap
3.3.4
fonts
glyphicons-halflings-regular.woff
glyphicons-halflings-regular.eot
glyphicons-halflings-regular.woff2
glyphicons-halflings-regular.ttf
glyphicons-halflings-regular.svg
js
bootstrap.min.js
bootstrap.js
npm.js
css
bootstrap-theme.css.map
bootstrap.min.css
bootstrap.css
bootstrap-theme.min.css
bootstrap-theme.css
img
button.gif
favicon.ico
dataloading.gif
otherjs
ie-emulation-modes-warning.js
jquery.min.js
ga.js
cloud.js
docs.min.js
docs.min.js.20150901
dzhops.js
ie10-viewport-bug-workaround.js
theme
cover.css
dzhops.css
dashboard.css
theme.css
dzhops
使用Django框架开发的Salt Stack Web UI
开发语言: python;
后端框架: Django;
前端框架:bootstrap/jquery;
环境
RHEL 6.5 x86_64
salt-master 2015.5.3
salt-minion 2015.5.3
salt-api 2015.5.3
Django 1.6.8
python 2.6.6
MySQL 5.5
dzhops更新记录
SaltStack相关功能(部署、更新、维护、远程)代码重构;
视图文件拆分,新建立app:saltstack/record/managekeys;
使用json格式通过接口传递数据,提高代码重用率;
远程操作的jid及返回结果相关信息入库;
对返回结果按IP进行排序;
返回结果展示按钮增加上下距离;
前端各选项左右对齐;
远程命令执行返回结果显示优化;
功能介绍
登陆页面
首页
,显示SaltMaster所在服务器及相关组件状态信息 目前监控数据,都是通过独立的信息采集脚本完成,需要做计划任务。
主机列表
进入主机列表界面,可以选择机房和维护人员;服务器相关的信息支持自动采集;
SaltStack
可完成如下功能:服务器初始化(如模块部署等)、程序、配置更新、日常维护操作、批量远程命令执行,当对Minion执行操作时,会记录本次目标Minion的数量,然后与返回结果的Minion数量进行对比,找出哪些没有返回结果;当接收到返回结果后,使用bootstrap的模态框显示结果,其中蓝色表示执行成功,红色表示有失败存在,可以点击标签查看详细情况;
MinionKeys管理
可以分别选择已接受、待接受、已拒绝,并且可以选择机房及维护人员,进行对应的管理操作;
操作记录
可以记录每次操作执行人的账号、操作、目标、及jid,并可以通过jid查看该次操作的返回结果详细情况。