{"id":14965309,"url":"https://github.com/luxiaok/saltadmin","last_synced_at":"2025-04-05T13:08:44.323Z","repository":{"id":23035286,"uuid":"26388141","full_name":"luxiaok/SaltAdmin","owner":"luxiaok","description":"基于SaltStack的自动化运维平台","archived":false,"fork":false,"pushed_at":"2019-10-17T09:09:35.000Z","size":1296,"stargazers_count":397,"open_issues_count":9,"forks_count":259,"subscribers_count":56,"default_branch":"master","last_synced_at":"2025-04-05T13:08:38.984Z","etag":null,"topics":["mako","minions","python","salt-master","salt-minion","saltstack","webpy"],"latest_commit_sha":null,"homepage":"http://github.com/luxiaok/SaltAdmin","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luxiaok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-09T06:54:32.000Z","updated_at":"2024-10-08T17:01:28.000Z","dependencies_parsed_at":"2022-08-21T18:10:36.311Z","dependency_job_id":null,"html_url":"https://github.com/luxiaok/SaltAdmin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FSaltAdmin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FSaltAdmin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FSaltAdmin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luxiaok%2FSaltAdmin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luxiaok","download_url":"https://codeload.github.com/luxiaok/SaltAdmin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mako","minions","python","salt-master","salt-minion","saltstack","webpy"],"created_at":"2024-09-24T13:34:33.742Z","updated_at":"2025-04-05T13:08:44.307Z","avatar_url":"https://github.com/luxiaok.png","language":"HTML","readme":"SaltAdmin\n=========\n\n![SaltAdmin](https://github.com/luxiaok/SaltAdmin/raw/master/static/images/SaltAdminLogo.jpg)\n\n基于[SaltStack](https://github.com/saltstack/salt)的自动化运维平台\n\nDesigned By [Xiaok](http://github.com/luxiaok)\n\n\n### Python运维圈（微信扫一扫） ###\n\n![Python运维圈](https://github.com/luxiaok/SaltAdmin/raw/master/static/images/ops_circle_qrcode.jpg)\n\n\u003e或者微信搜索 **Python运维圈**\n\n### 技术交流QQ群 ###\n\n**459457262**\n\n\u003e加群时请注明来自 **Github**\n\n\n## 一、环境说明 ##\n* SaltAdmin：1.0-Beta\n* 系统平台：RHEL/CentOS 6.x | Ubuntu 12.04+\n* [SaltStack](https://github.com/saltstack/salt) \u003e= 2014.7.0\n* [Python](http://www.python.org)：2.6.6/2.7.x\n* [Webpy](http://webpy.org)：0.38\n* [Mako](http://www.makotemplates.org/)：0.9.1/1.0.0+\n* [MySQL](http://www.percona.com/)：Percona-Server 5.5.36\n* [MySQL-python](http://pypi.python.org/pypi/MySQL-python)：1.2.5+\n* [uWSGI](http://projects.unbit.it/downloads/uwsgi-2.0.6.tar.gz)：2.0.6 (Not Limit)\n* [Nginx](http://nginx.org/download/nginx-1.6.0.tar.gz)：1.4.7 (Not Limit)\n\n**说明**\n* (1) RHEL/CentOS支持6.x系列，7.0以上暂未测试(实际生产环境7.x系列还没成为主流)\n* (2) uWSGI和Nginx作为Web容器是可选的环境，可以不部署\n* (3) 其他软件的版本号在实际运行环境中如果不同，为了兼容性保持主版本号相同即可\n\n\n## 二、安装 ##\n\n### 1.Webpy ###\n* wget http://webpy.org/static/web.py-0.38.tar.gz\n* tar zxf web.py-0.38.tar.gz\n* python setup.py install\n\n### 2.Mako ###\n* pip install mako\n\n### 3.MySQLdb ###\n* yum install MySQL-python\n\n### 4.SaltStack ###\nRedHat/CentOS 6 系列\u003cbr\u003e\n* rpm -ivh http://mirrors.sohu.com/fedora-epel/6Server/x86_64/epel-release-6-8.noarch.rpm\n* yum install salt-master\n* yum install salt-minion\n\nUbuntu 系列\u003cbr\u003e\n* add-apt-repository -y ppa:saltstack/salt\n* apt-get update\n* apt-get install salt-master\n* apt-get install salt-ssh\n* apt-get install salt-minion\n\n\u003e新版的SaltStack已经有了官方的Yum仓库，具体请参照http://repo.saltstack.com/\n\n### 5.其他依赖 ###\n依赖以下python模块\n* yum install python-dmidecode\n* pip install -U psutil\n\n### 6.数据库配置  ###\n* 新建数据库saltadmin\n* 导入doc目录下的saltadmin.sql文件\n* 配置config/database.py\n\n```\n#!/usr/bin/env python\n#-*- coding:utf-8 -*-\n\ndbType = 'mysql'\ndbHost = '127.0.0.1'\ndbPort = 3306\ndbName = 'saltadmin'\ndbUser = 'test'\ndbPass = 'test'\ndbChar = 'utf8'\n```\n\n## 三、启动SaltAdmin ##\n* 启动：python run.py\n* 访问端口：8080\n* 用户名/密码：admin/admin\n\n\u003e更换监听端口：python run.py IP:Port\n\n\n## 四、基础排错思路 ##\n\n**万变不离其宗，在终端看程序日志可以解决N多问题，不要依赖前端的弹窗提示**\n\n\n## 五、截图预览 ##\n\n### 登录 ###\n![Login](https://github.com/luxiaok/SaltAdmin/raw/master/screenshot/login.png)\n\n### 控制中心 ###\n![Dashboard](https://github.com/luxiaok/SaltAdmin/raw/master/screenshot/dashboard.png)\n\n### 监控 ###\n![Monitor](https://github.com/luxiaok/SaltAdmin/raw/master/screenshot/monitor.png)\n\n### 设备管理 ###\n![Device](https://github.com/luxiaok/SaltAdmin/raw/master/screenshot/device.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxiaok%2Fsaltadmin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluxiaok%2Fsaltadmin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluxiaok%2Fsaltadmin/lists"}