diff --git a/smartgears/smartgears/defaults/main.yml b/smartgears/smartgears/defaults/main.yml
index 5209b368..1c95bf6f 100644
--- a/smartgears/smartgears/defaults/main.yml
+++ b/smartgears/smartgears/defaults/main.yml
@@ -28,6 +28,9 @@ smartgears_vo_name:
smartgears_hostname: '{{ ansible_fqdn }}'
smartgears_country: it
smartgears_location: pisa
+smartgears_latitude: 41.9000
+smartgears_longitude: 12.5000
+
smartgears_http_port: 9000
smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
@@ -36,6 +39,7 @@ smartgears_loglevel: WARN
smartgears_tomcat_contexts: [ 'whn-manager' ]
smartgears_define_context_vo: False
+smartgears_define_context_root_vo: True
smartgears_context: '/smart-executor'
smartgears_contexts_list:
- ''
diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2
index d49b8f49..bf11a163 100644
--- a/smartgears/smartgears/templates/container.xml.j2
+++ b/smartgears/smartgears/templates/container.xml.j2
@@ -11,6 +11,7 @@
{{ item.http_port }}
{% endif %}
{{ smartgears_infrastructure_name }}
+
{% if smartgears_vo %}
{% for vo_n in smartgears_vo_name %}
{{ vo_n }}
@@ -20,8 +21,8 @@
{{ smartgears_country }}
{{ smartgears_location }}
- 41.9000
- 12.5000
+ {{ smartgears_latitude }}
+ {{ smartgears_longitude }}
@@ -30,11 +31,17 @@
{% if smartgears_define_context_vo %}
+
+ {% if smartgears_define_context_root_vo %}
+ /{{ smartgears_infrastructure_name }}
+ {% endif %}
+
{% for vo_n in smartgears_vo_name %}
{% for context in smartgears_contexts_list %}
/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ context }}
{% endfor %}
{% endfor %}
+
{% endif %}