bundlewrap/bundles/icinga2/items.py
Franzi f30aa48eca
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/icinga2: add sshmon private key
2020-11-10 13:43:46 +01:00

23 lines
544 B
Python

assert node.has_bundle('postgresql')
assert node.has_bundle('sshmon')
from os.path import join
files = {
'/usr/local/share/icinga/plugins/check_bl': {
'mode': '0755',
},
'/usr/local/share/icinga/plugins/check_by_sshmon': {
'mode': '0755',
},
'/etc/sshmon.priv': {
'content': repo.vault.decrypt_file(join('sshmon', 'sshmon.key.vault')),
#'owner': 'nagios',
#'group': 'nagios',
'mode': '0400',
#'needs': {
# 'pkg_apt:icinga2-ido-pgsql',
#},
}
}