bundles/nodejs: move to own bundle

This commit is contained in:
Franzi 2020-04-04 16:31:08 +02:00
parent 4f624df09d
commit f3dc5c8325
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,5 @@
assert node.has_bundle('nodejs')
from json import dumps
riot_web_root = '/var/www/{}'.format(node.metadata['riot-web']['url'])
@ -6,10 +8,6 @@ directories = {
riot_web_root: {}
}
pkg_apt = {
'yarn': {},
}
git_deploy = {
riot_web_root: {
'needs': {

View file

@ -1,27 +0,0 @@
@metadata_processor
def nodejs_apt_repos(metadata):
return {
'apt': {
'repos': {
'yarn': {
'key': '72ECF46A56B4AD39C907BBB71646B01B86E50310',
'items': [
'deb https://dl.yarnpkg.com/debian/ stable main',
],
},
'node': {
'key': '9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280',
'items': [
'deb https://deb.nodesource.com/node_10.x buster main',
'deb-src https://deb.nodesource.com/node_10.x buster main',
],
},
},
'unattended-upgrades': {
'sites': {
'deb.nodesource.com',
'dl.yarnpkg.com',
},
},
},
}, DEFAULTS, DONE