From f3dc5c832509ee289edc7498cf940508d83fe263 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 4 Apr 2020 16:31:08 +0200 Subject: [PATCH] bundles/nodejs: move to own bundle --- bundles/nodejs/items.py | 4 ++++ bundles/{riot-web => nodejs}/metadata.py | 0 bundles/riot-web/items.py | 6 ++---- nodes/htz/ex42-1048908.py | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 bundles/nodejs/items.py rename bundles/{riot-web => nodejs}/metadata.py (100%) diff --git a/bundles/nodejs/items.py b/bundles/nodejs/items.py new file mode 100644 index 0000000..2b1580d --- /dev/null +++ b/bundles/nodejs/items.py @@ -0,0 +1,4 @@ +pkg_apt = { + 'yarn': {}, + 'nodejs': {}, +} diff --git a/bundles/riot-web/metadata.py b/bundles/nodejs/metadata.py similarity index 100% rename from bundles/riot-web/metadata.py rename to bundles/nodejs/metadata.py diff --git a/bundles/riot-web/items.py b/bundles/riot-web/items.py index c739965..f92eb9c 100644 --- a/bundles/riot-web/items.py +++ b/bundles/riot-web/items.py @@ -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': { diff --git a/nodes/htz/ex42-1048908.py b/nodes/htz/ex42-1048908.py index 2eb79c0..b6f8bd8 100644 --- a/nodes/htz/ex42-1048908.py +++ b/nodes/htz/ex42-1048908.py @@ -1,6 +1,7 @@ nodes['htz.ex42-1048908'] = { 'bundles': [ 'nginx', + 'nodejs', 'riot-web', 'vmhost', 'voc-loudness-monitor',