code refactor
This commit is contained in:
parent
f16315328b
commit
107ad572f8
|
@ -4,9 +4,9 @@ logger:
|
|||
keepHours: 24
|
||||
|
||||
enable:
|
||||
mon: false
|
||||
job: false
|
||||
report: false
|
||||
mon: true
|
||||
job: true
|
||||
report: true
|
||||
|
||||
job:
|
||||
metadir: ./meta
|
||||
|
@ -22,11 +22,11 @@ report:
|
|||
# physical:物理机,virtual:虚拟机,container:容器,switch:交换机
|
||||
cate: physical
|
||||
|
||||
# 使用哪个字段作为唯一KEY,即作为where条件更新对应记录
|
||||
# 一般使用sn,虚机的话把uuid当做sn即可,不同IaaS平台获取方式可能不同
|
||||
uniqkey: sn
|
||||
# 使用哪个字段作为唯一KEY,即作为where条件更新对应记录,一般使用sn或ip
|
||||
uniqkey: ip
|
||||
|
||||
# 如果是虚拟机,应该是获取uuid
|
||||
# curl -s http://169.254.169.254/a/meta-data/instance-id
|
||||
sn: dmidecode -s system-serial-number | tail -n 1
|
||||
|
||||
fields:
|
||||
|
@ -37,8 +37,8 @@ report:
|
|||
sys:
|
||||
# timeout in ms
|
||||
# interval in second
|
||||
timeout: 1000
|
||||
interval: 20
|
||||
timeout: 5000
|
||||
interval: 30
|
||||
ifacePrefix:
|
||||
- eth
|
||||
- em
|
||||
|
|
|
@ -8,9 +8,3 @@
|
|||
cn: 主机设备删除
|
||||
- en: ams_host_modify
|
||||
cn: 主机设备信息修改
|
||||
- title: 网络设备
|
||||
ops:
|
||||
- en: ams_netware_mgr_menu
|
||||
cn: 网络设备管理菜单
|
||||
- en: ams_netware_modify
|
||||
cn: 网络设备信息修改
|
10
etc/rdb.yml
10
etc/rdb.yml
|
@ -9,16 +9,14 @@ http:
|
|||
cookieName: ecmc-user
|
||||
|
||||
sso:
|
||||
enable: true
|
||||
ssoAddr: "http://10.86.76.13:8071"
|
||||
redirectURL: "http://10.86.76.13:8072/api/rdb/auth/callback"
|
||||
enable: false
|
||||
ssoAddr: "http://10.1.2.3:8071"
|
||||
redirectURL: "http://10.1.2.3:8072/api/rdb/auth/callback"
|
||||
clientId: ""
|
||||
clientSecret: ""
|
||||
apiKey: ""
|
||||
|
||||
tokens:
|
||||
- uic-builtin-token
|
||||
- hsp-builtin-token
|
||||
- rdb-builtin-token
|
||||
|
||||
# for ldap authorization
|
||||
|
@ -44,7 +42,7 @@ ldap:
|
|||
|
||||
# as queue for sender
|
||||
redis:
|
||||
enable: false
|
||||
enable: true
|
||||
addr: 127.0.0.1:6379
|
||||
pass: ""
|
||||
idle: 5
|
||||
|
|
Loading…
Reference in New Issue