Franzi
36bd6f5755
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
42 lines
1,018 B
Python
42 lines
1,018 B
Python
from tomlkit import dumps as toml_dumps
|
|
|
|
from bundlewrap.utils.text import toml_clean
|
|
|
|
users = {
|
|
'icinga_dashboard': {
|
|
'home': '/opt/simple-icinga-dashboard',
|
|
},
|
|
}
|
|
|
|
directories = {
|
|
'/opt/simple-icinga-dashboard/out': {
|
|
'owner': 'icinga_dashboard',
|
|
},
|
|
'/opt/simple-icinga-dashboard/src': {},
|
|
}
|
|
|
|
git_deploy = {
|
|
'/opt/simple-icinga-dashboard/src': {
|
|
'repo': 'https://git.kunsmann.eu/sophie/simple-icinga-dashboard.git',
|
|
'rev': 'main',
|
|
},
|
|
}
|
|
|
|
files = {
|
|
'/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',
|
|
},
|
|
},
|
|
}
|
|
|
|
symlinks = {
|
|
'/opt/simple-icinga-dashboard/out/bootstrap.min.css': {
|
|
'target': '/opt/simple-icinga-dashboard/src/bootstrap.min.css',
|
|
'needs': {
|
|
'git_deploy:/opt/simple-icinga-dashboard/src',
|
|
},
|
|
},
|
|
}
|