bundles: no default for nodejs version anymore

This commit is contained in:
Franzi 2024-07-19 19:20:23 +02:00
parent 55a3e6675f
commit 263440296d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 30 additions and 1 deletions

View file

@ -33,7 +33,7 @@ actions = {
'yarn build',
]),
'needs': {
'action:nodejs_install_yarn',
'action:apt_execute_update_commands',
'pkg_apt:nodejs',
},
'triggered': True,

View file

@ -11,6 +11,26 @@ defaults = {
},
}
@metadata_reactor.provides(
'nodejs/version',
)
def nodejs(metadata):
version = tuple([int(i) for i in metadata.get('element-web/version')[1:].split('.')])
if version >= (1, 11, 71):
return {
'nodejs': {
'version': 20,
},
}
else:
return {
'nodejs': {
'version': 18,
},
}
@metadata_reactor.provides(
'nginx/vhosts/element-web',
)

View file

@ -33,6 +33,9 @@ defaults = {
'/mnt/paperless',
},
},
'nodejs': {
'version': 18,
},
'postgresql': {
'roles': {
'paperless': {

View file

@ -13,6 +13,9 @@ defaults = {
'python3-wheel': {},
},
},
'nodejs': {
'version': 18,
},
'users': {
'powerdnsadmin': {
'home': '/opt/powerdnsadmin',

View file

@ -26,6 +26,9 @@ defaults = {
},
},
},
'nodejs': {
'version': 18,
},
'pretalx': {
'database': {
'user': 'pretalx',