ovh.icinga2: fix simple-icinga-dashboard
This commit is contained in:
parent
2607049f8d
commit
b35bfc85e9
3 changed files with 15 additions and 21 deletions
|
@ -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',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue