私信发送成功
Watch Star Fork

pippo / netadminGoApache-2.0

远程配置cisco,juniper
克隆/下载
pippo 最后提交于 2018-01-12 23:04 更新 README.md
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
2017-12-25 17:21
2017-12-26 09:21
2017-12-26 14:03
2017-12-26 14:31
2017-12-11 18:35
2017-12-15 15:08
2017-12-04 15:38
2017-12-26 14:03
2017-12-26 14:13
Loading...
README.md 2.44 KB

Netadmin

What's This?

  • Netadmin is built for network engineer to manage the network deivices(for now just juniper and cisco) with beego and FastAdmin
  • Netadmin is just platform which provides management for deivces, scripts, users,roles, gitlab, schedules
  • Using gitlab as the store of scripts and Netadmin gets the scripts from it by gitlab user token, so generate it first
  • Script or command is sent to netadmin-driver

Build By

Package Page
Beego https://github.com/astaxie/beego
FastAdmin-html https://github.com/karsonzhang/fastadmin-html

Warning

Please Reading and Following the protocol of FastAdmin-html. It can not be used for commercial purposes.Read Details

Deploy Gitlab

docker run -d --hostname gitlab --publish 8443:443 --publish 8080:80 --publish 2222:22 --name gitlab --restart always --privileged=true --env TZ=Asia/Shanghai -v /opt/gitlab/config:/etc/gitlab -v /opt/gitlab/logs:/var/log/gitlab -v /opt/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest

Build

At first you need to copy conf/app.conf.example to conf/app.conf and update the following configurations

# Netadmin Database
user = "netadmin"
password = "nfsetso12fdds9s"
db_name = "netadmin"
host = "postgres_host" // your host
port = "5432"
max_idle_conn = 20
max_open_conn = 50

# debug
debug = false

# netadmin driver
netadmin_driver_url = "http://host:port/netdriver" // netadmin driver url


# session
sessionproviderconfig = "redis_host:redis_port" // redis host port
sessionhashkey = "abcdefghijklmnopqrstuvwxyz" // use your hashkey

You can build it esaily using Dockerfile

docker build -t <your docker repository url>/netadmin:<your version> .

Run it

docker run -d --name netadmin -p 8081:8081 -p 8088:8088 -e ENV_MODE=dev  <your docker repository url>/netadmin:<your version>

ENV_MODE is the mode in configuration. check app.conf.example


http://ip:8081 is netadmin console
http://ip:8081/swagger is api doc
http://ip:8088 is the admin console


Default User

name:admin
password:password

License

source code is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).

项目点评 ( 0 )

你可以在登录后,对此项目发表评论

6_float_left_people 6_float_left_close