# OpenSA **Repository Path**: bubooli/OpenSA ## Basic Information - **Project Name**: OpenSA - **Description**: 资产管理、资产采集、灰度发布、反向代理、批量任务、任务编排、计划任务、日志审计、权限管理、角色管理、部门管理、运维自动化 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: http://opensa.imdst.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 71 - **Created**: 2019-04-15 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenSA 运维自动化平台 #### 架构说明 * Django 2.1 + Mysql 5.7 + redis 5.0 + celery v4.2.0 * 生产环境请使用 nginx + uwsgi,不对公网开放,或者使用SSL双向认证 * 命令和文件分发基于SSH协议,支持Linux/Windows(cygwin)|支持快速修改为ansible * 使用2.7版本inspina模版 * 支持国际化(默认中/英),有些细节未完善,欢迎加入完善项目,联系WX “leoiceo” 或者加群(142189771) * 如果系统自己用得还不错,请多多推荐给身边的朋友 (star!star!star!......) * 欢迎提交功能开发和优化建议! #### [screenshots](https://github.com/leoiceo/OpenSA/wiki/screenshots) * screenshots文件200M以上,建议 download screenshots 目录进行查看 #### [中文指南 wiki](https://github.com/leoiceo/OpenSA/wiki) #### 安装部署说明 * 系统: CentOS 7 ``` setenforce 0 sed -i "s/enforcing/disabled/g" /etc/selinux/config # 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文 localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 export LC_ALL=zh_CN.UTF-8 echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf ``` * 安装 Python3 && redis ``` wget http://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz tar -zxvf Python-3.7.1.tar.xz && cd Python-3.7.1 ./configure --prefix=/usr/local/python37 make && make install yum install redis -y service redis start ##settings 设置了密码,可自行修改Redis.conf ``` * 拉取代码安装模块 ``` cd /opt/ git clone https://github.com/leoiceo/OpenSA wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py python ez_setup.py --insecure easy_install pip # 修改pypi源 mkdir -p ~/.pip/ cat ~/.pip/pip.conf <