bundlewrap/bundles/netdata/metadata.py

32 lines
661 B
Python
Raw Normal View History

2021-03-21 09:30:04 +00:00
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(
2021-03-21 09:30:04 +00:00
'iptables/port_rules/19999',
)
def iptables(metadata):
return {
'iptables': {
2021-03-21 09:30:04 +00:00
'port_rules': {
'19999': atomic(metadata.get('netdata/restrict-to', set('*'))),
},
},
}