forked from shengxinjing/woniu-cmdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
127 lines (113 loc) · 3.08 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# coding=utf-8
# 数据库配置
db_config = {
'host':'localhost',
'user':'root',
'passwd':"",
'db':'cmdb'
}
page_config = {
"brand_name":'51Reboot',
'title':'hello reboot',
"favicon":'https://pic1.zhimg.com/6d660dd4156c64bfad13ff97d79c2f98_l.jpg',
"menu":[
{
# user配置最好不要修改,是和登陆认证相关的,直接在下面加配置即可
"name": 'user',
"title": '用户管理',
"data": [{
"name": 'username',
"title": '用户名'
},{
"name":'password',
"title":'密码'
}]
},
{
# user配置最好不要修改,是和登陆认证相关的,直接在下面加配置即可
"name": 'test',
"title": '测试',
"data": [{
"name": 'username',
"title": '用户名'
},{
"name":'password',
"title":'密码',
"empty":"yes"
}]
},
{
"name":'caninet',
"title":'机柜',
"data":[{
"name":"name",
"title":'机柜名'
}]
},
{
"name":"host",
"title":"服务器",
"data":[{
"name":"caninet",
"title":'机柜',
"type":'select',
"select_type":'caninet'
},{
"name":"hostname",
"title":'主机名'
},{
'name':'asset_no',
'title':'资产号'
},{
"name":'end_time',
"title":"过期日期",
"type":'date'
},{
"name":'ups',
"title":'是否开启',
"type":'select',
"value":{0:'开启',1:'关闭'}
}]
}
]
}
# ,{
# "name": 'host',
# "title": '服务器',
# "data": [{
# "name": 'cabinet',
# "title": '机柜'
# },{
# "name":'hostname',
# "title":'主机名'
# }]
# },{
# "title": '业务',
# "sub":[
# {
# 'name': 'product',
# 'title': '业务线',
# 'data': [{
# 'name': 'service_name',
# 'title': '服务名'
# },{
# 'name':'module_letter',
# 'title':'模块简称'
# },{
# 'name':'dev_interface',
# 'title':'开发者'
# },{
# 'name':'op_interface',
# 'title':'运维接口人'
# }]
# },
# {
# 'name': 'raidtype',
# 'title': 'Raid厂商',
# 'data': [{
# 'name': 'name',
# 'title': 'Raid厂商'
# }]
# }
# ]
# }