From 4974494ee065b2b9edc45535fa66e9802f98f8f6 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 20 Aug 2020 09:44:01 +0200 Subject: [PATCH] bundles/travelynx: make version configurable via metadata --- bundles/travelynx/files/travelynx.conf | 2 +- bundles/travelynx/items.py | 2 +- nodes/htz/ex42-1048908.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/travelynx/files/travelynx.conf b/bundles/travelynx/files/travelynx.conf index 9626931..f265f9b 100644 --- a/bundles/travelynx/files/travelynx.conf +++ b/bundles/travelynx/files/travelynx.conf @@ -53,5 +53,5 @@ '${cookie_secret}', ], - version => '1.16.1', + version => '${version}', }; diff --git a/bundles/travelynx/items.py b/bundles/travelynx/items.py index 349b948..be5f4a6 100644 --- a/bundles/travelynx/items.py +++ b/bundles/travelynx/items.py @@ -36,7 +36,7 @@ files = { git_deploy = { '/opt/travelynx': { 'repo': 'https://github.com/derf/travelynx.git', - 'rev': '1.16.1', + 'rev': node.metadata['travelynx']['version'], 'triggers': { 'action:travelynx_install_deps', 'action:travelynx_database_migrate', diff --git a/nodes/htz/ex42-1048908.py b/nodes/htz/ex42-1048908.py index 5a19582..c42e773 100644 --- a/nodes/htz/ex42-1048908.py +++ b/nodes/htz/ex42-1048908.py @@ -184,6 +184,7 @@ nodes['htz.ex42-1048908'] = { }, }, 'travelynx': { + 'version': '1.16.1', 'mail_from': 'travelynx@franzi.business', }, 'users': {