Code Monkey home page Code Monkey logo

opencmdb's Introduction

OpenCMDB项目介绍

OpenCMDB是一个完全开源的CMDB管理系统,遵循DevOps理念,立足于ITSM构建自动化运维的基石。
这是一个完全社区性质的项目,欢迎熟悉Python、VUE.js、Django的朋友们参与,共同推进!

项目成员:

Product Owner:赵班长
Scrum Team:
前端:欢迎参与
后端:周伟

开发环境:

  - Python-3.5.2
  - Django-1.10.4
  - MongoDB
  <!--- MySQL-->

环境部署

MongoDB部署(在OpenCMDB中,MongoDB用于存放CI模型和相关数据):

[root@linux-node3 ~]# yum install -y mongodb-server mongodb npm
[root@linux-node3 ~]# systemctl start mongod
[root@linux-node3 ~]# systemctl enable mongod
> use cmdb
	switched to db cmdb
> db.addUser("cmdb", "cmdb");

Nginx部署

[root@linux-node3 ~]# yum install -y nginx
 [root@linux-node3 ~]# cd /etc/nginx/default.d/

Python 3.5.2安装:

[root@linux-node3 ~]# yum install -y gcc glibc make openssl-devel mariadb-devel
[root@linux-node3 ~]# cd /usr/local/src/
[root@linux-node3 src]# wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
[root@linux-node3 src]# tar zxf Python-3.5.2.tgz && cd Python-3.5.2
[root@linux-node3 Python-3.5.2]# ./configure --prefix=/usr/local/python-3.5.2
[root@linux-node3 Python-3.5.2]# make && make install

Python 虚拟环境部署:

[root@linux-node3 ~]# /usr/local/python-3.5.2/bin/pyvenv /opt/cmdb_runtime
[root@linux-node3 ~]# cd /opt/cmdb_runtime/
[root@linux-node3 ~]# git clone [email protected]:unixhot/opencmdb.git
[root@linux-node3 cmdb_runtime]# source bin/activate
(cmdb_runtime) [root@linux-node3 cmdb_runtime]# pip install -r cmdb/requirements.txt 

配置文件变更:

(cmdb_runtime) [root@linux-node3 cmdb_runtime]# vim cmdb/CMDB/settings.py
	ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '192.168.56.13']
	mongodb_url=config('MONGODB_URL', '192.168.56.13')
	MONGODB_DATABASES = {
		"default": {
			"name": 'mongotest',
			"host": mongodb_url,
			# "host": '127.0.0.1',        
			"password": 'mongotest',
			"username": 'mongotest',
			"tz_aware": True,  # if you using timezones in django (USE_TZ = True)
		}
		
(cmdb_runtime) [root@linux-node3 cmdb]# python manage.py migrate

opencmdb's People

Contributors

unixhot avatar

Stargazers

 avatar

Watchers

 avatar  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.