CMDB: configuration and management of IT resources | 运维的权威数据库
Go to file
pycook 5758b8e999 upgrade ui packages 2020-11-22 11:13:46 +08:00
.github/workflows Create codeql-analysis.yml 2020-11-22 10:45:45 +08:00
cmdb-api add command: add-user | del-user 2020-06-11 21:37:41 +08:00
cmdb-ui upgrade ui packages 2020-11-22 11:13:46 +08:00
docs api docs update 2020-01-06 21:58:06 +08:00
.gitattributes add .gitattributes 2019-08-28 21:08:28 +08:00
.gitignore /ci_types/<int:type_id>/attributes/transfer and /ci_types/<int:type_id>/attribute_groups/transfer 2020-01-19 17:59:32 +08:00
Dockerfile release version 2.1 2020-05-28 20:28:49 +08:00
LICENSE change to GPLv2 2019-11-25 20:33:56 +08:00
Makefile update makefile 2019-12-18 23:36:58 +09:00
README.md Readme is in Chinese by default 2020-05-28 20:35:11 +08:00
README_en.md Readme is in Chinese by default 2020-05-28 20:35:11 +08:00
docker-compose.yml release version 2.1 2020-05-28 20:28:49 +08:00

README_en.md

CMDB

As far as possible to achieve more universal configuration and management of IT resources

License UI API

中文 / English

DEMO ONLINE

  • Preview online: CMDB
    • username: demo
    • password: 123456

ATTENTION: branch master may be unstable as the result of continued development, please pull code from releases


Overview

Documents

The CMDB is a universal project that can define and manage almost all IT resources, even every resource as long as you want to, which treat all IT resources as resource objects. Objects has both attributes and relationship.

CMDB's main distinguishing features as compared to other resource systems are:

  • Define attributes of resource objects dynamicallyyou don't need to define all the attributes at the beginning.

  • Define relationship of resource objects dynamically and simply, even you can draw the relationship through the web.

  • Three view:

    • Resource view: model instance data that users can subscribe
    • Tree view: the model is hierarchical by field, shown in a tree diagram, and users can subscribe
    • Relational view: relationships between models, shown in a tree diagram, are configurable by the administrator
  • Authority management

Install

There are various ways of installing CMDB.

Install by Docker

  • Prepare: install docker and docker-compose
  • In directory cmdb
        docker-compose up -d
    
  • View: http://127.0.0.1:8000

Environment and dependency

  • database: mysql
  • cache: redis
  • python: python2.7, >=python3.6

Install

  • Start mysql, redis

  • Create mysql database: cmdb

  • Pull code

    git clone https://github.com/pycook/cmdb.git
    cd cmdb
    cp cmdb-api/settings.py.example cmdb-api/settings.py
    

    set database in config file cmdb-api/settings.py

  • Install library

    • backend: cd cmdb-api && pipenv run pipenv install && cd ..
    • frontend: cd cmdb-ui && yarn install && cd ..
  • Create tables of cmdb database:

    in cmdb-api directory: pipenv run flask db-setup && pipenv run flask init-cache

  • Suggest step: (default: user:demo,password:123456)

    source docs/cmdb.sql

  • Start service

    • backend: in cmdb-api directory: pipenv run flask run -h 0.0.0.0

    • frontend: in cmdb-ui directory: yarn run serve

    • worker: in cmdb-api directory: pipenv run celery worker -A celery_worker.celery -E -Q cmdb_async --concurrency=1

    • homepage: http://127.0.0.1:8000

      • if not run localhost: please change ip address(VUE_APP_API_BASE_URL) in config file cmdb-ui/.env into your backend ip address

Install by Makefile

  • Start mysql,redis

  • Create mysql database: cmdb

  • Pull code

    git clone https://github.com/pycook/cmdb.git
    cd cmdb
    cp cmdb-api/settings.py.example cmdb-api/settings.py
    

    set database in config file cmdb-api/settings.py

  • In cmdb directory,start in order as follows:

    • enviroment: make env
    • start API: make api
    • start UI: make ui
    • start worker: make worker

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-feature)
  5. Create new Pull Request

DEMO

resource view

resource view

tree view

tree view

relationship view

relationship view

user subscription

user subscription

define relationship view

define relationship view


Welcome to join us through QQ group336164978

QQgroup