bundles/lldp: introduce, add to all nodes at home
This commit is contained in:
parent
b9b0a9c5ca
commit
4213b60052
3 changed files with 49 additions and 0 deletions
10
bundles/lldp/files/bundlewrap.conf
Normal file
10
bundles/lldp/files/bundlewrap.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
# _ ____ _ _ _____ _ _ _ _ ____
|
||||
# / \ / ___| | | |_ _| | | | \ | |/ ___|
|
||||
# / _ \| | | |_| | | | | | | | \| | | _
|
||||
# / ___ \ |___| _ | | | | |_| | |\ | |_| |
|
||||
# /_/ \_\____|_| |_| |_| \___/|_| \_|\____|
|
||||
#
|
||||
# --> Diese Datei wird von BundleWrap verwaltet! <--
|
||||
|
||||
configure system hostname "${node.name}"
|
||||
configure system platform "${node.os}"
|
36
bundles/lldp/items.py
Normal file
36
bundles/lldp/items.py
Normal 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',
|
||||
},
|
||||
},
|
||||
}
|
|
@ -45,6 +45,9 @@ groups['home'] = {
|
|||
'member_patterns': {
|
||||
r"home\..*",
|
||||
},
|
||||
'bundles': {
|
||||
'lldp',
|
||||
},
|
||||
'metadata': {
|
||||
'nameservers': {
|
||||
'172.19.138.1',
|
||||
|
|
Loading…
Reference in a new issue