211

GitHub - guohongze/adminset: 自动化运维平台:CMDB、CD、DevOps、资产管理、任务编...

 6 years ago
source link: https://github.com/guohongze/adminset
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

AdminSet

68747470733a2f2f7472617669732d63692e6f72672f67756f686f6e677a652f61646d696e7365742e7376673f6272616e63683d6d6173746572 68747470733a2f2f696d672e736869656c64732e696f2f686578706d2f6c2f706c75672e737667 release
Adminset基于DevOps理念开发,以整合全部运维场景为己任。Adminset是一个真正的基于运维思维而开发的全自动化运维平台。

v0.11 新功能

django更新至1.11.9 webssh更新至0.2.0 新增认证中心功能 新增持续交付模块 新增免交互全自动安装 新增redis可配置选项 增加客户端rhel支持 优化CPU抓取逻辑 导航栏弹出逻辑调整 优化自动免密钥登陆逻辑

开发环境

centos 7.2(1511) django 1.11.9(兼容Django1.9.x) python 2.7

服务端安装

生产服务器建议 4核CPU,8G内存以上.
学习测试建议 2核CPU,2G内存以上.
服务器操作系统版本要求 centos7.2及以上

git clone https://github.com/guohongze/adminset.git
adminset/install/server/auto_install.sh

说明:手动自定义安装请使用
adminset/install/server/server_install.sh

客户端安装

客户端脚本目前rhel/centos6、7,ubuntu14.04经过测试
客户端python版本支持2.6.6及以上
说明:为保证注册IP是管理IP(后续会被ansible等调用),客户端的IP抓取目前使用主机名解析,否则报错。 如:主机名为cn-bj-web01 请在/etc/hosts中加入相应的解析 192.168.x.x cn-bj-web01,这样再执行adminset_agent.py 可以保证正常运行。

step1:

拷贝install/client/client_install.sh 到客户机上并执行:

install/client/client_install.sh

step2:

拷贝install/client/adminset_agent.py 到客户机上并执行:

python adminset_agent.py

后台运行请参考:

nohup python adminset_agent.py &

注意:客户端全部功能需要配置服务器到客户端的ssh免密登录。
客户端正常使用需要修改脚本中的两个字段:
token = 'HPcWR7l4NJNJ' token是上传到服务器的密钥可以在WEB界面的系统配置中自定义
server_ip = '192.168.47.130' 此项目为adminset server的IP地址

访问

http://your_server_ip
自动安装的用户名admin 密码Adminset123
手动安装使用自定义创建的super admin用户名密码

说明

使用参考,使用说明
功能参考,功能预览
FAQ参考,常见问题

安全

建议不要将程序启动在有公网可以直接访问的设备上,如果需要请使用VPN。
建议生产环境中使用https配置服务器
由于开发方便,在django的settings中开启了DEBUG,在生产中需要关闭并指定自己的域名。

开发者交流

请加入开发者群,注明来自github qq.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK