Franziska Kunsmann
b943d2d465
All checks were successful
bundlewrap/pipeline/head This commit looks good
31 lines
661 B
Python
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('*'))),
|
|
},
|
|
},
|
|
}
|