From 23c23057d6a60a13982a887ab0f7d81286217b64 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 2 Dec 2016 11:54:31 +0100 Subject: [PATCH] ../library/roles/smartgears/smartgears/defaults/main.yml added smartgears_publication_frequency default ../library/roles/smartgears/smartgears/templates/container.xml.j2 set publication frequency as variable --- smartgears/smartgears/defaults/main.yml | 2 +- smartgears/smartgears/templates/container.xml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml index d4ae69eb..75677ede 100644 --- a/smartgears/smartgears/defaults/main.yml +++ b/smartgears/smartgears/defaults/main.yml @@ -31,7 +31,7 @@ smartgears_country: it smartgears_location: pisa smartgears_latitude: 41.9000 smartgears_longitude: 12.5000 - +smartgears_publication_frequency: 180 smartgears_http_port: 9000 smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}' diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2 index e9db2c45..b84bb3f9 100644 --- a/smartgears/smartgears/templates/container.xml.j2 +++ b/smartgears/smartgears/templates/container.xml.j2 @@ -26,7 +26,7 @@ - 180 + {{ smartgears_publication_frequency }} {{ smartgears_infrastructure_name }} {% if smartgears_distribution_version | version_compare('2.0.0', '<') %}