bundlewrap/bundles/bird/items.py

22 lines
339 B
Python
Raw Normal View History

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