Skip to content
Snippets Groups Projects
Commit 559bb857 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Update config structure.

Now includes excluded dashboards and NRENs per org.
parent e7057c63
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,19 @@ CONFIG_SCHEMA = {
"isDefault",
"readOnly"
]
},
"organization": {
"type": "object",
"properties": {
"name": {"type": "string"},
"excluded_nrens": {"type": "array", "items": {"type": "string"}},
"excluded_dashboards": {"type": "array", "items": {"type": "string"}},
},
"required": [
"name",
"excluded_nrens",
"excluded_dashboards"
]
}
},
......@@ -38,7 +51,8 @@ CONFIG_SCHEMA = {
"admin_password": {"type": "string"},
"hostname": {"type": "string"},
"listen_port": {"type": "integer"},
"organizations": {"type": "array", "items": {"type": "string"}},
"inventory_provider": {"type": "string"},
"organizations": {"type": "array", "items": {"$ref": "#definitions/organization"}},
"datasources": {
"type": "object",
"properties": {
......@@ -51,6 +65,7 @@ CONFIG_SCHEMA = {
"admin_username",
"admin_password",
"hostname",
"inventory_provider",
"organizations",
"datasources"
],
......
......@@ -11,11 +11,28 @@ def data_config():
"admin_username": "fakeadmin",
"admin_password": "fakeadmin",
"hostname": "myfakehostname.org",
"inventory_provider": "inventory-provider01.geant.org:8080",
"organizations": [
'Testorg1',
'GÉANT Testorg2',
'NRENsTestorg3',
'General Public'
{
"name": "Testorg1",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "GÉANT Testorg2",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "NRENsTestorg3",
"excluded_nrens": [],
"excluded_dashboards": []
},
{
"name": "General Public",
"excluded_nrens": ["JISC", "PSNC"],
"excluded_dashboards": []
}
],
"datasources": {
"influxdb": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment