Ops

基于centos6+python3.6+django2+ansible2.4+celery4.2 运维管理系统,目前实现功能:用户和用户组管理、资产管理、集成ansible2.4、简易堡垒机(主机分配支持rdp以及vnc、用户分配、文件上传下载、配置禁用命令清单、操作录像回放功能)、CI/CD(支持git仓库和svn仓库)、数据库管理(一部分)、celery任务编排、知识库及文件共享

Stars
712

ops

centos6+python3.6+django2+ansible2.4+celery4.2 -ansible(LinuxWindows)CI/CDgitsvncelerymarkdown

4.24

docker k8s djangowebdocker webdocker docker docker

https://www.poorops.com/ https://github.com/opendevops-cn/codo-cmdb/blob/master/libs/aliyun/rds.py

python3.6

https://github.com/pyenv/pyenv

git clone https://github.com/pythonzm/Ops.git
pip install -r requirements.txt

// django-celery-resultspipgithub
pip install https://github.com/celery/django-celery-results/zipball/master#egg=django-celery-results

mysql

MySQL5.6

vim /etc/my.cnf
## 
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake

## 
lower_case_table_names=1

/etc/init.d/mysqld restart
# mysql -uroot -p
mysql>create database ops DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql>grant all privileges on ops.* to root@'%' identified by 'password';
mysql>quit

redis

mongodb

celery

cp conf/celeryd.conf /etc/default/celeryd
### 

cp conf/celeryd.server /etc/init.d/celeryd
cp conf/celerybeat.server /etc/init.d/celerybeat
/etc/init.d/celeryd start  ##celerydexport C_FORCE_ROOT="true"
/etc/init.d/celerybeat start
cp conf/get_mem.py /path/to/your ansible python module location  ##ansbile --version

GuacamolewebWindowsVNC

https://guacamole.apache.org/doc/gug/installing-guacamole.html

settings.py GUACD_HOST GUACD_PORTguac

https://github.com/mohabusama/pyguacamolehttps://github.com/jimmy201602/django-guacamole

Opssettings.py celery.py

python manage.py makemigrations users assets dbmanager fort plan projs task wiki
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 0.0.0.0:8000

https://github.com/RobbieHan/sandboxOA image

(django)

ECSECSRDS

https://github.com/opendevops-cn/codo-cmdb

CPU

ansible

ansibleplaybook

ansible role

webssh

webssh

webssh

webWindows

webssh

,grant option, image

CI/CD

tomcatnohupansible

CI/CD

CI/CD

celery