All Projects → yianjiajia → Django_web_ansible

yianjiajia / Django_web_ansible

自动化运维管理系统

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django web ansible

Modern Django
Modern Django: A Guide on How to Deploy Django-based Web Applications in 2017
Stars: ✭ 662 (+191.63%)
Mutual labels:  virtualenv
Openpogobot
A PokemonGo Python bot - NO LONGER MAINTAINED
Stars: ✭ 120 (-47.14%)
Mutual labels:  virtualenv
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (-19.82%)
Mutual labels:  virtualenv
Virtualenv Burrito
One command to have a working virtualenv + virtualenvwrapper environment.
Stars: ✭ 847 (+273.13%)
Mutual labels:  virtualenv
Nodeenv
Virtual environment for Node.js & integrator with virtualenv
Stars: ✭ 1,297 (+471.37%)
Mutual labels:  virtualenv
Rpmvenv
RPM packager for Python virtualenv.
Stars: ✭ 128 (-43.61%)
Mutual labels:  virtualenv
Pipenv
Python Development Workflow for Humans.
Stars: ✭ 22,542 (+9830.4%)
Mutual labels:  virtualenv
Hatch
A modern project, package, and virtual env manager for Python
Stars: ✭ 2,268 (+899.12%)
Mutual labels:  virtualenv
Makefile.venv
Seamlessly manage Python virtual environment with a Makefile
Stars: ✭ 114 (-49.78%)
Mutual labels:  virtualenv
Fish Pipenv
🐟🐍 a fish plugin that automatically activates the pipenv subshell
Stars: ✭ 170 (-25.11%)
Mutual labels:  virtualenv
Bootstrapper
Bootstrap Python projects or libraries with virtualenv and pip
Stars: ✭ 10 (-95.59%)
Mutual labels:  virtualenv
Build Deep Learning Env With Tensorflow Python Opencv
Tutorial on how to build your own research envirorment for Deep Learning with OpenCV, Python, Tensorfow
Stars: ✭ 66 (-70.93%)
Mutual labels:  virtualenv
Virtualenv Api
An API for virtualenv/pip
Stars: ✭ 130 (-42.73%)
Mutual labels:  virtualenv
Virtualfish
Fish shell tool for managing Python virtual environments
Stars: ✭ 819 (+260.79%)
Mutual labels:  virtualenv
Fades
fades is a system that automatically handles the virtualenvs in the cases normally found when writing scripts and simple programs, and even helps to administer big projects.
Stars: ✭ 182 (-19.82%)
Mutual labels:  virtualenv
Try
Dead simple CLI tool to try Python packages - It's never been easier! 📦
Stars: ✭ 588 (+159.03%)
Mutual labels:  virtualenv
Pipenv Pipes
A PipEnv Environment Switcher
Stars: ✭ 122 (-46.26%)
Mutual labels:  virtualenv
Zsh Autoswitch Virtualenv
🐍 ZSH plugin to automatically switch python virtualenvs (including pipenv and poetry) as you move between directories
Stars: ✭ 222 (-2.2%)
Mutual labels:  virtualenv
Tox
Command line driven CI frontend and development task automation tool.
Stars: ✭ 2,523 (+1011.45%)
Mutual labels:  virtualenv
Pipenv.el
A Pipenv porcelain inside Emacs.
Stars: ✭ 141 (-37.89%)
Mutual labels:  virtualenv

About

自动化综合管理平台 ~集成ansibleUI

Function

  • 按照项目来组织布局,更为直观,上手简单
  • 提供简单易懂的主机管理界面
  • 提供用户密钥管理功能
  • 提供yml文件界面管理功能
  • 提供任务部署功能
  • 提供文件传输功能
  • 提供命令执行功能
  • 提供预约执行功能
  • 提供任务模板功能
  • 提供log功能
  • 提供邮件通知功能
  • 基于celery队列进行任务分发,便于扩展

UserManual

ansible_ui平台用户手册

Requirements

  • pip
  • virtualenv
  • mysql-server,mysql-devel
  • openldap-devel

Install

  • 系统为CentOS6.5

  • 添加系统用户

      useradd ansible
      su - ansible
    
  • 配置virtualenv环境

      virtualenv envansible
      source envansible/bin/active
    
  • 安装依赖库

      cd ansible-ui
      pip install -r requirements.txt
      pip install PIL --allow-external PIL --allow-unverified PIL
    
  • 配置ldap、数据库和邮件信息

      cd desktop/core/internal
      vim settings_local.py 
      # 修改 LDAP Datebase Mail 和ansible_playbook命令位置(which ansible_playbook)配置
      如果需要使用ldap,还需要修改settings.py,去掉下面行的注释
      #'desktop.core.auth.backend.LdapBackend',
    
  • 配置数据库

      create database ansible CHARACTER SET utf8;
      grant all on ansible.* to [email protected]'localhost' identified by '******';
    
  • 初始化数据库

      python manage.py schemamigration desktop.apps.account --init
      python manage.py schemamigration desktop.apps.ansible --init
      python manage.py syncdb
      python manage.py migrate ansible
      python manage.py migrate account
      python manage.py migrate kombu.transport.django
      python manage.py migrate djcelery
      python manage.py migrate guardian
    
  • 配置celery

      修改celery-conf/supervisord.conf
      [inet_http_server] #配置web管理supervisor
      [program:ansible_celeryd] #修改command中 virtualenv 和 ansible_ui home
    
  • 启动celery

      supervisord -c celery-conf/supervisord.conf
    
  • 配置ansible

      cp ansible-conf/ansible.cfg ~/.ansible.cfg
    
  • Vagrant + Ansible

    感谢yunlzheng提供了使用vagrant+ansible自动构建开发环境的方式Vagrantfile+playbook.yml,具体操作推荐阅读yunlzheng的《利用Ansible将开发环境纳入版本管理》

Run

  • 直接运行

      python manage.py runserver ip:8000
    
  • apache + wsgi

      修改apache-conf/ansible.cfg : ansible_ui_dir,指向实际目录
      修改django.wsgi : yourvirtualenv 指向实际目录
      拷贝apache-conf/ansible.cfg 到apache配置目录下
      重启 httpd
    

Problem

  • 已知问题:在单核CPU服务器上任务无法运行(在调用pexpect时会报“ValueError: I/O operation on closed file”错误,类似这个问题,如果要在单核CPU服务器上运行,请将pexpect降为2.4版本
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].