bundles/pppd: automatically add interface entry for ignored interface

This commit is contained in:
Franzi 2022-12-11 17:42:08 +01:00
parent 86990b92ea
commit e8d24bc363
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 13 additions and 10 deletions

View file

@ -28,6 +28,19 @@ defaults = {
}
@metadata_reactor.provides(
'interfaces',
)
def ignore_interface(metadata):
return {
'interfaces': {
metadata.get('pppd/interface'): {
'ignore': True,
},
},
}
@metadata_reactor.provides(
'icinga2_api/pppd/services',
)

View file

@ -26,16 +26,6 @@ nodes['home.router'] = {
'172.19.138.1/24',
},
},
'enp1s0.100': {
'ignore': True,
},
},
'apt': {
'packages': {
# for telegraf
'snmp': {},
'snmp-mibs-downloader': {},
},
},
'backups': {
'exclude_from_backups': True,