Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-dashboard-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
brian
brian-dashboard-manager
Commits
acc19a9c
Commit
acc19a9c
authored
3 years ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
Update org config and add comments
parent
44ba6ca0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
brian_dashboard_manager/config.py
+59
-7
59 additions, 7 deletions
brian_dashboard_manager/config.py
with
59 additions
and
7 deletions
brian_dashboard_manager/config.py
+
59
−
7
View file @
acc19a9c
"""
This file loads the configuration used for the dashboard manager.
The config is stored in a JSON format on the filesystem,
with the following schema:
.. asjson::
brian_dashboard_manager.config.CONFIG_SCHEMA
Some config specific to each organization is hardcoded.
This includes which organizations to provision,
and which dashboards not to provision for each organization:
`excluded_nrens` is a list of strings to search for in interface descriptions
to exclude for that organization.
`excluded_dashboards` is a list of dashboard names to exclude.
These only cover the static dashboards loaded from the file system.
`excluded_folders` covers dynamically generated folders and dashboards.
This property is a mapping of folder name to `True` or a list of dashboards.
A value of `True` should result in that folder being excluded.
If the value is a list, dashboard titles within the list should be excluded.
.. asjson::
brian_dashboard_manager.config.DEFAULT_ORGANIZATIONS
"""
import
json
import
jsonschema
...
...
@@ -5,7 +34,8 @@ DEFAULT_ORGANIZATIONS = [
{
"
name
"
:
"
GÉANT Staff
"
,
"
excluded_nrens
"
:
[],
"
excluded_dashboards
"
:
[]
"
excluded_dashboards
"
:
[],
"
excluded_folders
"
:
{}
},
{
"
name
"
:
"
NRENs
"
,
...
...
@@ -13,7 +43,11 @@ DEFAULT_ORGANIZATIONS = [
"
excluded_dashboards
"
:
[
"
GÉANT Office devices
"
,
"
GÉANT VM
"
]
],
"
excluded_folders
"
:
{
"
Aggregates
"
:
[
"
CAE1
"
],
"
GEANTOPEN
"
:
True
}
},
{
"
name
"
:
"
General Public
"
,
...
...
@@ -23,8 +57,17 @@ DEFAULT_ORGANIZATIONS = [
],
"
excluded_dashboards
"
:
[
"
GÉANT Office devices
"
,
"
GÉANT VM
"
]
"
GÉANT VM
"
,
"
IAS
"
,
"
GEANTOPEN
"
],
"
excluded_folders
"
:
{
"
Aggregates
"
:
[
"
CAE1
"
,
"
GWS UPSTREAMS
"
],
"
IAS CUSTOMER
"
:
True
,
"
IAS PRIVATE
"
:
True
,
"
IAS PUBLIC
"
:
True
,
"
IAS UPSTREAM
"
:
True
}
},
{
"
name
"
:
"
CAE1 - Europe
"
,
...
...
@@ -32,7 +75,8 @@ DEFAULT_ORGANIZATIONS = [
"
excluded_dashboards
"
:
[
"
GÉANT Office devices
"
,
"
GÉANT VM
"
]
],
"
excluded_folders
"
:
{}
},
{
"
name
"
:
"
CAE1 - Asia
"
,
...
...
@@ -42,8 +86,16 @@ DEFAULT_ORGANIZATIONS = [
],
"
excluded_dashboards
"
:
[
"
GÉANT Office devices
"
,
"
GÉANT VM
"
]
"
GÉANT VM
"
,
"
IAS
"
],
"
excluded_folders
"
:
{
"
Aggregates
"
:
[
"
GWS UPSTREAMS
"
],
"
IAS CUSTOMER
"
:
True
,
"
IAS PRIVATE
"
:
True
,
"
IAS PUBLIC
"
:
True
,
"
IAS UPSTREAM
"
:
True
}
}
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment