bundlewrap/bundles/netdata/metadata.py
Franziska Kunsmann b943d2d465
All checks were successful
bundlewrap/pipeline/head This commit looks good
rework iptables configuration
2021-03-21 10:30:04 +01:00

31 lines
661 B
Python

from bundlewrap.metadata import atomic
defaults = {
'apt': {
'packages': {
'netdata': {},
},
},
'icinga2_api': {
'netdata': {
'services': {
'NETDATA PROCESS': {
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C netdata -c 1:',
},
},
},
},
}
@metadata_reactor.provides(
'iptables/port_rules/19999',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
'19999': atomic(metadata.get('netdata/restrict-to', set('*'))),
},
},
}