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 = { files = {
'/etc/bird/bird.conf': { filename: {
'content_type': 'mako', 'content_type': 'mako',
'triggers': { 'triggers': {
'svc_systemd:bird:reload', 'svc_systemd:bird:reload',
@ -10,8 +15,7 @@ files = {
svc_systemd = { svc_systemd = {
'bird': { 'bird': {
'needs': { 'needs': {
'file:/etc/bird/bird.conf', f'file:{filename}',
'pkg_apt:bird2',
}, },
}, },
} }

View file

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