bundles/bird: support arch linux

This commit is contained in:
Franzi 2022-03-09 13:04:34 +01:00
parent c023c144c3
commit 05a2e501ce
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 21 additions and 4 deletions

View file

@ -1,5 +1,10 @@
if node.os == 'arch':
filename = '/etc/bird.conf'
else:
filename = '/etc/bird/bird.conf'
files = {
'/etc/bird/bird.conf': {
filename: {
'content_type': 'mako',
'triggers': {
'svc_systemd:bird:reload',
@ -10,8 +15,7 @@ files = {
svc_systemd = {
'bird': {
'needs': {
'file:/etc/bird/bird.conf',
'pkg_apt:bird2',
f'file:{filename}',
},
},
}

View file

@ -5,7 +5,20 @@ from bundlewrap.metadata import atomic
defaults = {
'apt': {
'packages': {
'bird2': {},
'bird2': {
'needed_by': {
'svc_systemd:bird',
},
},
},
},
'pacman': {
'packages': {
'bird': {
'needed_by': {
'svc_systemd:bird',
},
},
},
},
'sysctl': {