Skip to content

Light-Gao/AICMDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

I tried to find some popular open source CMDB system, I succeed.
And then I tired to pick up one which should be easy to handle, I failed.
I am not sure why, and I do not want to figure it out. Since I decide to make one all by myself.
As you see, the name of this project is 'AICMDB', but I still want to name it 'MiniCMDB' as a product name, and I will call it with this name below...

Using components/Framework

  1. Flask
  2. SQLAlchemy
  3. Extensions: flask-sqlalchemy/flask-wtf/flask-migrate/flask-bcrypt... You may find these extensions in requirements.txt file.

How to start

  1. Clone this project;
  2. Install python3(at least python3.5.2) on your host;
  3. Install all dependencies in requirements.txt: pip install requirements.txt;
  4. Make sure you have Mysql installed on your host, and database(configured in config.py) exists ;
  5. Make sure you have Redis installed on your host or the right machine, and port configured as 6379 which could be modified in globalenums.py;
  6. Initial database: changing directory into project of AICMDB, execute python manager.py db init to initial migration repository, then python manager.py db migrate to identify differences between database and its definition in code(models.py), at last python manager.py db upgrade to make synchronization;
  7. After preparation above, you may start this web application by python manager.py [server], browser it through http://ip:6688(which configured in enums/globalenums.py);

Start to use this system

Yes, you are right. If you want to use this project as production solution, some extra measures will be needed. Follow descriptions and steps below:

  1. MiniCMDB could execute asynchronous tasks, but under the help of Celery, which is the most famous distributed asynchronous task framework in Python world. So you must start celery worker first. If you have installed all dependencies in requirements.txt, then you already have celery installed on you host. All you need is start it on console: $celery -A manager.celery_task_queue worker -l info.
  2. Still on the way...

License

GPL license,
which means you must keep it as open source project no matter what and keep the same license in your project.

About

A non-classic mini CMDB implementation...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages