bundles/matrix*: fix directories/repos

This commit is contained in:
Franzi 2021-07-23 07:58:15 +02:00
parent 46fcd1670f
commit 905a7917f8
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 22 additions and 10 deletions

View file

@ -5,14 +5,6 @@ defaults = {
'imagemagick': {}, 'imagemagick': {},
'ffmpeg': {}, 'ffmpeg': {},
}, },
'repos': {
'backports': {
'install_gpg_key': False, # default debian signing key
'items': {
'deb http://deb.debian.org/debian {os_release}-backports main',
},
},
},
}, },
'backups': { 'backups': {
'paths': { 'paths': {
@ -75,6 +67,16 @@ defaults = {
}, },
} }
if node.os == 'debian' and node.os_version[0] <= 10:
defaults['apt']['repos'] = {
'backports': {
'install_gpg_key': False, # default debian signing key
'items': {
'deb http://deb.debian.org/debian {os_release}-backports main',
},
},
}
@metadata_reactor.provides( @metadata_reactor.provides(
'matrix-media-repo/workers', 'matrix-media-repo/workers',

View file

@ -5,7 +5,7 @@ defaults = {
'repos': { 'repos': {
'matrix': { 'matrix': {
'items': { 'items': {
'deb https://packages.matrix.org/debian buster main', 'deb https://packages.matrix.org/{os} {os_release} main',
}, },
}, },
}, },

View file

@ -32,6 +32,7 @@ users = {
} }
directories = { directories = {
'/opt/mautrix-telegram': {},
'/opt/mautrix-telegram/src': {}, '/opt/mautrix-telegram/src': {},
} }

View file

@ -5,6 +5,7 @@ users = {
} }
directories = { directories = {
'/opt/mautrix-whatsapp': {},
'/opt/mautrix-whatsapp/src': {}, '/opt/mautrix-whatsapp/src': {},
'/opt/mautrix-whatsapp/logs': { '/opt/mautrix-whatsapp/logs': {
'owner': 'mautrix-whatsapp', 'owner': 'mautrix-whatsapp',

View file

@ -1,6 +1,11 @@
repo.libs.tools.require_bundle(node, 'nodejs') repo.libs.tools.require_bundle(node, 'nodejs')
directories = { directories = {
'/opt/mx-puppet-discord': {},
'/opt/mx-puppet-discord/.npm': {
'owner': 'mx-puppet-discord',
'group': 'mx-puppet-discord',
},
'/opt/mx-puppet-discord/src': { '/opt/mx-puppet-discord/src': {
'owner': 'mx-puppet-discord', 'owner': 'mx-puppet-discord',
'group': 'mx-puppet-discord', 'group': 'mx-puppet-discord',
@ -54,8 +59,11 @@ git_deploy = {
actions = { actions = {
'mx-puppet-discord_chown': { 'mx-puppet-discord_chown': {
'command': 'chown -R mx-puppet-discord:mx-puppet-discord /opt/mx-puppet-discord/src', 'command':
'chown -R mx-puppet-discord:mx-puppet-discord /opt/mx-puppet-discord/src && '
'chown -R mx-puppet-discord:mx-puppet-discord /opt/mx-puppet-discord/.npm',
'needs': { 'needs': {
'directory:/opt/mx-puppet-discord/.npm',
'user:mx-puppet-discord', 'user:mx-puppet-discord',
}, },
'triggered': True, 'triggered': True,