bundlewrap/bundles/pppd/metadata.py

42 lines
1,020 B
Python
Raw Permalink Normal View History

2020-11-13 20:41:02 +00:00
defaults = {
'apt': {
'packages': {
'ppp': {},
'pppoe': {},
2020-11-14 11:46:19 +00:00
'python3-requests': {},
'python3-netifaces': {},
'ndisc6': {},
2020-11-13 20:41:02 +00:00
},
},
'cron': {
'jobs': {
'restart-pppoe-if-no-public-ip': '*/5 * * * * root /usr/local/bin/restart-pppoe-if-no-public-ip',
},
},
'icinga2_api': {
'pppd': {
'services': {
'PPPD PROCESS': {
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C pppd -c 1:',
},
'PPPOE PROCESS': {
'command_on_monitored_host': '/usr/lib/nagios/plugins/check_procs -C pppoe -c 1:',
},
},
},
},
2020-11-13 20:41:02 +00:00
}
@metadata_reactor.provides(
'interfaces',
)
def ignore_interface(metadata):
return {
'interfaces': {
metadata.get('pppd/interface'): {
'ignore': True,
},
},
}