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,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',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue