Coder Social home page Coder Social logo

lamproae / saltadmin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luxiaok/saltadmin

0.0 2.0 0.0 1.27 MB

基于SaltStack的自动化运维平台

Home Page: http://github.com/luxiaok/SaltAdmin

License: GNU General Public License v2.0

Python 13.48% HTML 57.69% CSS 16.30% JavaScript 12.53%

saltadmin's Introduction

SaltAdmin

SaltAdmin

基于SaltStack的自动化运维平台

Designed By Xiaok

Python运维圈(微信扫一扫)

Python运维圈

或者微信搜索 Python运维圈

技术交流QQ群

459457262

加群时请注明来自 Github

一、环境说明

说明

  • (1) RHEL/CentOS支持6.x系列,7.0以上暂未测试(实际生产环境7.x系列还没成为主流)
  • (2) uWSGI和Nginx作为Web容器是可选的环境,可以不部署
  • (3) 其他软件的版本号在实际运行环境中如果不同,为了兼容性保持主版本号相同即可

二、安装

1.Webpy

2.Mako

  • pip install mako

3.MySQLdb

  • yum install MySQL-python

4.SaltStack

RedHat/CentOS 6 系列

Ubuntu 系列

  • add-apt-repository -y ppa:saltstack/salt
  • apt-get update
  • apt-get install salt-master
  • apt-get install salt-ssh
  • apt-get install salt-minion

新版的SaltStack已经有了官方的Yum仓库,具体请参照http://repo.saltstack.com/

5.其他依赖

依赖以下python模块

  • yum install python-dmidecode
  • pip install -U psutil

6.数据库配置

  • 新建数据库saltadmin
  • 导入doc目录下的saltadmin.sql文件
  • 配置config/database.py
#!/usr/bin/env python
#-*- coding:utf-8 -*-

dbType = 'mysql'
dbHost = '127.0.0.1'
dbPort = 3306
dbName = 'saltadmin'
dbUser = 'test'
dbPass = 'test'
dbChar = 'utf8'

三、启动SaltAdmin

  • 启动:python run.py
  • 访问端口:8080
  • 用户名/密码:admin/admin

更换监听端口:python run.py IP:Port

四、基础排错思路

万变不离其宗,在终端看程序日志可以解决N多问题,不要依赖前端的弹窗提示

五、截图预览

登录

Login

控制中心

Dashboard

监控

Monitor

设备管理

Device

saltadmin's People

Contributors

luxiaok avatar haiya512 avatar

Watchers

James Cloos avatar copper lee 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.