bundles/icinga2: add dependencies for icingaweb2 setup

This commit is contained in:
Franzi 2020-11-21 08:57:46 +01:00
parent 7fba53245a
commit d3de7a27be
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 35 additions and 1 deletions

View file

@ -3,6 +3,16 @@ assert node.has_bundle('sshmon')
from os.path import join
directories = {
'/etc/icingaweb2': {
'group': 'icingaweb2',
'mode': '0775',
'needs': {
'pkg_apt:icingaweb2',
},
},
}
files = {
'/usr/local/share/icinga/plugins/check_rbl': {
'mode': '0755',
@ -18,5 +28,10 @@ files = {
'needs': {
'pkg_apt:icinga2-ido-pgsql',
},
}
},
'/etc/icingaweb2/setup.token': {
'content': node.metadata['icingaweb2']['setup-token'],
'mode': '0660',
'group': 'icingaweb2',
},
}