bundles: only install apt packages via apt bundle to avoid double defining packages

This commit is contained in:
Franzi 2020-04-11 11:25:24 +02:00
parent e7a1c2c83e
commit f1a693d0d6
Signed by: kunsi
GPG key ID: 12E3D2136B818350
12 changed files with 36 additions and 25 deletions

View file

@ -1,7 +1,3 @@
pkg_apt = {
'matrix-synapse-py3': {}
}
files = {
'/etc/matrix-synapse/homeserver.yaml': {
'content_type': 'mako',

View file

@ -15,6 +15,9 @@ def nodejs_apt_repos(metadata):
'packages.matrix.org',
},
},
'packages': {
'matrix-synapse-py3': {},
},
},
}, DEFAULTS, DONE

View file

@ -1,3 +0,0 @@
pkg_apt = {
'nginx': {},
}

View file

@ -15,5 +15,8 @@ def nginx_apt_repo(metadata):
'nginx.org',
},
},
'packages': {
'nginx': {},
},
},
}, DEFAULTS, DONE

View file

@ -1,4 +0,0 @@
pkg_apt = {
'yarn': {},
'nodejs': {},
}

View file

@ -23,5 +23,9 @@ def nodejs_apt_repos(metadata):
'dl.yarnpkg.com',
},
},
'packages': {
'nodejs': {},
'yarn': {},
},
},
}, DEFAULTS, DONE

View file

@ -5,11 +5,6 @@ users = {}
files = {}
groups = {}
pkg_apt = {
'fish': {},
'tmux': {},
}
users['root'] = {
'home': '/root',
'shell': '/bin/bash',

10
bundles/users/metadata.py Normal file
View file

@ -0,0 +1,10 @@
@metadata_processor
def apt(metadata):
return {
'apt': {
'packages': {
'fish': {},
'tmux': {},
},
},
}, DEFAULTS, DONE

View file

@ -1,5 +0,0 @@
pkg_apt = {
'qemu-kvm': {},
'libvirt-clients': {},
'libvirt-daemon-system': {},
}

View file

@ -0,0 +1,11 @@
@metadata_processor
def apt(metadata):
return {
'apt': {
'packages': {
'qemu-kvm': {},
'libvirt-clients': {},
'libvirt-daemon-system': {},
},
},
}, DEFAULTS, DONE

View file

@ -34,10 +34,6 @@ streams = {
files = {}
svc_systemd = {}
pkg_apt = {
'ffmpeg': {},
}
for stream_id, config in streams.items():
config['id'] = stream_id

View file

@ -1,6 +1,11 @@
@metadata_processor
def add_voc_user(metadata):
return {
'apt': {
'packages': {
'ffmpeg': {},
},
},
'users': {
'voc': {
'home': '/opt/voc-loudness-monitor',