2021-02-18 14:10:50 +00:00
|
|
|
if node.has_bundle('pacman'):
|
|
|
|
package = 'pkg_pacman:lldpd'
|
|
|
|
else:
|
|
|
|
package = 'pkg_apt:lldpd'
|
2020-11-13 15:28:43 +00:00
|
|
|
|
|
|
|
directories = {
|
|
|
|
'/etc/lldpd.d': {
|
|
|
|
'purge': True,
|
|
|
|
'needs': {
|
2021-02-18 14:10:50 +00:00
|
|
|
package,
|
2020-11-13 15:28:43 +00:00
|
|
|
},
|
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:lldpd:restart',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
files = {
|
2021-02-18 14:10:50 +00:00
|
|
|
'/etc/lldpd.conf': {
|
|
|
|
'delete': True,
|
2020-11-13 15:28:43 +00:00
|
|
|
'needs': {
|
2021-02-18 14:10:50 +00:00
|
|
|
package,
|
2020-11-13 15:28:43 +00:00
|
|
|
},
|
2021-02-18 14:10:50 +00:00
|
|
|
},
|
|
|
|
'/etc/lldpd.d/bundlewrap.conf': {
|
|
|
|
'content_type': 'mako',
|
2020-11-13 15:28:43 +00:00
|
|
|
'triggers': {
|
|
|
|
'svc_systemd:lldpd:restart',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
svc_systemd = {
|
|
|
|
'lldpd': {
|
|
|
|
'needs': {
|
|
|
|
'file:/etc/lldpd.d/bundlewrap.conf',
|
2021-02-18 14:10:50 +00:00
|
|
|
package,
|
2020-11-13 15:28:43 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|