bundles/lldp: introduce, add to all nodes at home

This commit is contained in:
Franzi 2020-11-13 16:28:43 +01:00
parent b9b0a9c5ca
commit 4213b60052
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 49 additions and 0 deletions

36
bundles/lldp/items.py Normal file
View file

@ -0,0 +1,36 @@
pkg_apt = {
'lldpd': {},
}
directories = {
'/etc/lldpd.d': {
'purge': True,
'needs': {
'pkg_apt:lldpd',
},
'triggers': {
'svc_systemd:lldpd:restart',
},
},
}
files = {
'/etc/lldpd.d/bundlewrap.conf': {
'content_type': 'mako',
'needs': {
'pkg_apt:lldpd',
},
'triggers': {
'svc_systemd:lldpd:restart',
},
},
}
svc_systemd = {
'lldpd': {
'needs': {
'pkg_apt:lldpd',
'file:/etc/lldpd.d/bundlewrap.conf',
},
},
}