get rid of check_rbl

This commit is contained in:
Franzi 2021-02-17 10:51:49 +01:00
parent 9d5d80457f
commit b42e39ed0a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 0 additions and 669 deletions

View file

@ -44,30 +44,6 @@ else:
})
# FIXME find a working, non-shitty check for that
#@metadata_reactor.provides(
# 'icinga2_api/postfix/services',
#)
def fill_icinga_spam_blocklist_check_with_hostname(metadata):
checks = {}
for _, ips in repo.libs.tools.resolve_identifier(repo, node.name).items():
for ip in ips:
if not ip.is_private:
checks[f'SPAM BLOCKLIST {ip}'] = {
'check_command': 'check_rbl',
'vars.ip': str(ip),
}
return {
'icinga2_api': {
'postfix': {
'services': checks,
},
},
}
@metadata_reactor.provides(
'letsencrypt/domains',
'letsencrypt/reload_after',