bundlewrap/bundles/bird/items.py

22 lines
339 B
Python
Raw Normal View History

2022-03-09 13:04:34 +01:00
if node.os == 'arch':
filename = '/etc/bird.conf'
else:
filename = '/etc/bird/bird.conf'
2021-09-29 19:45:18 +02:00
files = {
2022-03-09 13:04:34 +01:00
filename: {
2021-09-29 19:45:18 +02:00
'content_type': 'mako',
'triggers': {
'svc_systemd:bird:reload',
},
},
}
svc_systemd = {
'bird': {
'needs': {
2022-03-09 13:04:34 +01:00
f'file:{filename}',
2021-09-29 19:45:18 +02:00
},
},
}