bundles/simple-icinga-dashboard: config is a toml file now
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
b33ddaadb5
commit
36bd6f5755
5 changed files with 39 additions and 26 deletions
|
@ -1,16 +0,0 @@
|
|||
[icinga2_api]
|
||||
baseurl = ${api_url}
|
||||
username = ${api_user}
|
||||
password = ${api_password}
|
||||
|
||||
[filters]
|
||||
hosts = ${host_filter}
|
||||
services = ${service_filter}
|
||||
|
||||
[prettify]
|
||||
% for search, replace in sorted(replacements.items()):
|
||||
${search.lower()} = ${replace}
|
||||
% endfor
|
||||
|
||||
[output]
|
||||
filename = /opt/simple-icinga-dashboard/out/index.html
|
|
@ -1,3 +1,7 @@
|
|||
from tomlkit import dumps as toml_dumps
|
||||
|
||||
from bundlewrap.utils.text import toml_clean
|
||||
|
||||
users = {
|
||||
'icinga_dashboard': {
|
||||
'home': '/opt/simple-icinga-dashboard',
|
||||
|
@ -19,9 +23,8 @@ git_deploy = {
|
|||
}
|
||||
|
||||
files = {
|
||||
'/opt/simple-icinga-dashboard/src/config.conf': {
|
||||
'content_type': 'mako',
|
||||
'context': node.metadata['simple-icinga-dashboard'],
|
||||
'/opt/simple-icinga-dashboard/src/config.toml': {
|
||||
'content': toml_clean(toml_dumps(repo.libs.toml.dict_to_toml(node.metadata['simple-icinga-dashboard']))),
|
||||
'needs': {
|
||||
'git_deploy:/opt/simple-icinga-dashboard/src',
|
||||
},
|
||||
|
|
|
@ -9,4 +9,9 @@ defaults = {
|
|||
},
|
||||
},
|
||||
},
|
||||
'simple-icinga-dashboard': {
|
||||
'output': {
|
||||
'filename': '/opt/simple-icinga-dashboard/out/index.html',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue