bundlewrap/bundles/icinga2/items.py

23 lines
540 B
Python
Raw Normal View History

assert node.has_bundle('postgresql')
assert node.has_bundle('sshmon')
from os.path import join
files = {
'/usr/local/share/icinga/plugins/check_rbl': {
'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',
},
}
}