2020-11-10 11:40:12 +00:00
|
|
|
assert node.has_bundle('postgresql')
|
|
|
|
assert node.has_bundle('sshmon')
|
|
|
|
|
2020-11-10 12:43:46 +00:00
|
|
|
from os.path import join
|
|
|
|
|
2020-11-10 11:40:12 +00:00
|
|
|
files = {
|
2020-11-10 13:26:07 +00:00
|
|
|
'/usr/local/share/icinga/plugins/check_rbl': {
|
2020-11-10 11:40:12 +00:00
|
|
|
'mode': '0755',
|
|
|
|
},
|
|
|
|
'/usr/local/share/icinga/plugins/check_by_sshmon': {
|
|
|
|
'mode': '0755',
|
|
|
|
},
|
2020-11-10 12:43:46 +00:00
|
|
|
'/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',
|
|
|
|
#},
|
|
|
|
}
|
2020-11-10 11:40:12 +00:00
|
|
|
}
|