# Sops **Repository Path**: beam_l/Sops ## Basic Information - **Project Name**: Sops - **Description**: 基于saltstack做的运维管理平台 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-01-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sops 基于saltstack做的运维管理平台 目录结构说明 api -- 对外对内的接口相关 autocmdb -- CMDB基础模块,例如服务器收集信息等相关的功能 backend -- 等同于admin的主要方法,主要运维人员在上面配置相关的服务配置 config -- 程序的全局配置文件 func -- 公共的方法 script -- 脚本 static -- 静态文件 templates -- 模板 web -- 前端界面 安装依赖环境 pip install -r ./installpkg.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 安装saltstack和minion 待补充 vim returnpost.py #把192.168.0.10:8000 修改成你使用的域名能访问到/api/asset/的url即可,不懂的加QQ506556658 minion需要安装依赖pip install psutil,或可通过master执行命令。(否则无法进行监控指标): salt '*' cmd.run 'yum -y install ntp ntpdate' salt '*' cmd.run 'ntpdate cn.pool.ntp.org' #同步时间 salt '*' cmd.run 'yum -y install python-devel' salt '*' cmd.run 'pip install psutil' salt '*' cmd.run 'pip install requests'