bundles/lldp: do not run for routeros devices

This commit is contained in:
Franzi 2023-03-26 15:58:09 +02:00
parent 66c6a92ec5
commit 190833c54a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,28 +1,29 @@
directories = {
'/etc/lldpd.d': {
'purge': True,
'triggers': {
'svc_systemd:lldpd:restart',
if node.os != 'routeros':
directories = {
'/etc/lldpd.d': {
'purge': True,
'triggers': {
'svc_systemd:lldpd:restart',
},
},
},
}
}
files = {
'/etc/lldpd.conf': {
'delete': True,
},
'/etc/lldpd.d/bundlewrap.conf': {
'content_type': 'mako',
'triggers': {
'svc_systemd:lldpd:restart',
files = {
'/etc/lldpd.conf': {
'delete': True,
},
},
}
'/etc/lldpd.d/bundlewrap.conf': {
'content_type': 'mako',
'triggers': {
'svc_systemd:lldpd:restart',
},
},
}
svc_systemd = {
'lldpd': {
'needs': {
'file:/etc/lldpd.d/bundlewrap.conf',
svc_systemd = {
'lldpd': {
'needs': {
'file:/etc/lldpd.d/bundlewrap.conf',
},
},
},
}
}