bundlewrap/bundles/netdata/metadata.py

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