From f727202ead8f5fb9c7df60f3d7c6024515362691 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 27 Dec 2018 18:01:34 +0100 Subject: [PATCH] Add a new option to the container.xml file. Disabled by default. --- smartgears/smartgears/defaults/main.yml | 3 +++ smartgears/smartgears/templates/container.xml.j2 | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml index a6a99e92..cfe8eced 100644 --- a/smartgears/smartgears/defaults/main.yml +++ b/smartgears/smartgears/defaults/main.yml @@ -21,6 +21,9 @@ smartgears_distribution_version: latest smartgears_global_base_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}' smartgears_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ smartgears_gcube_repository }}' +# Change to 'True' when the stable version will be >= 2.2.0-4.13.1 +smartgears_set_protocol_in_conf: False + smartgears_name: smartgears-distribution smartgears_group_id: org.gcube.distribution smartgears_extension: tar.gz diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2 index 69100e35..b27fa965 100644 --- a/smartgears/smartgears/templates/container.xml.j2 +++ b/smartgears/smartgears/templates/container.xml.j2 @@ -14,7 +14,9 @@ {{ item.http_port }} {% endif %} {% endif %} - + {% if smartgears_set_protocol_in_conf %} + http + {% endif %} {{ smartgears_country }} {{ smartgears_location }}