GithubHelp home page GithubHelp logo

strong163 / opadmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cc0411/opadmin

0.0 0.0 0.0 56.7 MB

ansible django celery cmdb wiki rbac

License: GNU General Public License v3.0

Python 99.28% Shell 0.14% ASP 0.02% Java 0.01% PHP 0.28% CSS 0.26% Ruby 0.01%

opadmin's Introduction

本系统基本django1.11.8+python3.5+centos7系统开发,目前实现的功能有rbac,cmbd,webssh,filemanage,ansible等功能

使用方法如下

下载代码

git clone https://github.com/cc0411/opadmin

安装python包

pip install -r requirements.txt

配置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 ##如果出现celeryd无法启动,则添加环境变量:export C_FORCE_ROOT="true"

/etc/init.d/celerybeat start

安装redis

安装mysql

初始化表

create database ops CHARACTER SET utf8 COLLATE utf8_general_ci;

python manage.py makemigrations

python manage.py migrate

python create_superuser

连接mysql

mysql -u root -p;

source db.sql;

运行

python manage.py runserver 0.0.0.0:8000

测试使用celery 相关命令

Celery -A opadmin worker -l info

celery -A opadmin beat -l info -S django #监听后面定时任务

  1. 启动flower celery -A opadmin flower

http://localhost:5555/tasks web后台界面可以查看任务执行状态

具体功能实现图

1.登录页面,采用LDAP或腾讯企业微信认证,请先配置wx_config表相关配置 screenshots 2.权限管理 screenshots 3.用户管理 screenshots 4.API screenshots 5.Wiki screenshots 6.CMDB screenshots 7.ansible screenshots

请大家给个stars,谢谢大家的关注

screenshots screenshots

opadmin's People

Contributors

cc0411 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.