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

4
bundles/nodejs/items.py Normal file
View file

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

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,6 +1,7 @@
nodes['htz.ex42-1048908'] = {
'bundles': [
'nginx',
'nodejs',
'riot-web',
'vmhost',
'voc-loudness-monitor',