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 = { if node.os != 'routeros':
'/etc/lldpd.d': { directories = {
'purge': True, '/etc/lldpd.d': {
'triggers': { 'purge': True,
'svc_systemd:lldpd:restart', 'triggers': {
'svc_systemd:lldpd:restart',
},
}, },
}, }
}
files = { files = {
'/etc/lldpd.conf': { '/etc/lldpd.conf': {
'delete': True, 'delete': True,
},
'/etc/lldpd.d/bundlewrap.conf': {
'content_type': 'mako',
'triggers': {
'svc_systemd:lldpd:restart',
}, },
}, '/etc/lldpd.d/bundlewrap.conf': {
} 'content_type': 'mako',
'triggers': {
'svc_systemd:lldpd:restart',
},
},
}
svc_systemd = { svc_systemd = {
'lldpd': { 'lldpd': {
'needs': { 'needs': {
'file:/etc/lldpd.d/bundlewrap.conf', 'file:/etc/lldpd.d/bundlewrap.conf',
},
}, },
}, }
}