ovh.icinga2: fix simple-icinga-dashboard

This commit is contained in:
Franzi 2023-05-20 20:12:24 +02:00
parent 2607049f8d
commit b35bfc85e9
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 15 additions and 21 deletions

View file

@ -43,16 +43,6 @@ git_deploy = {
}
files = {
'/etc/systemd/system/simple-icinga-dashboard.service': {
'triggers': {
'action:systemd-reload',
},
},
'/etc/systemd/system/simple-icinga-dashboard.timer': {
'triggers': {
'action:systemd-reload',
},
},
'/opt/simple-icinga-dashboard/config.toml': {
'content_type': 'mako',
'needs': {
@ -69,13 +59,3 @@ symlinks = {
},
},
}
svc_systemd = {
'simple-icinga-dashboard.timer': {
'needs': {
'action:simple-icinga-dashboard_install_requirements',
'file:/etc/systemd/system/simple-icinga-dashboard.service',
'file:/etc/systemd/system/simple-icinga-dashboard.timer',
},
},
}

View file

@ -11,4 +11,17 @@ defaults = {
'filename': '/opt/simple-icinga-dashboard/out/index.html',
},
},
'systemd-timers': {
'timers': {
'simple-icinga-dashboard': {
'when': 'minutely',
'command': '/opt/simple-icinga-dashboard/venv/bin/python /opt/simple-icinga-dashboard/src/service.py',
'pwd': '/opt/simple-icinga-dashboard/src/',
'user': 'icinga_dashboard',
'environment': {
'STATUSPAGE_CONFIG': '/opt/simple-icinga-dashboard/config.toml',
},
},
},
},
}

View file

@ -39,7 +39,8 @@ nodes['ovh.icinga2'] = {
'dashboard': {
'password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
'permissions': {
'objects/query/Service'
'objects/query/Service',
'objects/query/Host',
},
},
# Used with <https://git.franzi.business/kunsi/icinga2eamer>