add simple-icinga-dashboard on status.franzi.business
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
fixes #20
This commit is contained in:
parent
2ebf7ec32b
commit
e8d131b041
5 changed files with 84 additions and 1 deletions
11
bundles/simple-icinga-dashboard/files/config.conf
Normal file
11
bundles/simple-icinga-dashboard/files/config.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
[icinga2_api]
|
||||
baseurl = ${api_url}
|
||||
username = ${api_user}
|
||||
password = ${api_password}
|
||||
|
||||
[filters]
|
||||
hosts = ${host_filter}
|
||||
services = ${service_filter}
|
||||
|
||||
[output]
|
||||
filename = /opt/simple-icinga-dashboard/out/index.html
|
38
bundles/simple-icinga-dashboard/items.py
Normal file
38
bundles/simple-icinga-dashboard/items.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
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': 'ssh://git@git.kunsmann.eu/sophie/simple-icinga-dashboard.git',
|
||||
'rev': 'main',
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
'/opt/simple-icinga-dashboard/src/config.conf': {
|
||||
'content_type': 'mako',
|
||||
'context': 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',
|
||||
},
|
||||
},
|
||||
}
|
12
bundles/simple-icinga-dashboard/metadata.py
Normal file
12
bundles/simple-icinga-dashboard/metadata.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
defaults = {
|
||||
'cron': {
|
||||
'simple-icinga-dashboard': '* * * * * icinga_dashboard cd /opt/simple-icinga-dashboard/src/ && ./service.py',
|
||||
},
|
||||
'postfix': {
|
||||
'aliases': {
|
||||
'icinga_dashboard': {
|
||||
'root',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue