library/roles/smartgears/gcubeapp-setup: More parameters in the gcube-app.xml template.

This commit is contained in:
Andrea Dell'Amico 2017-05-09 14:22:19 +02:00
parent a5f3856141
commit d393a18363
2 changed files with 10 additions and 2 deletions

View File

@ -2,5 +2,6 @@
gcubeapp_setup: False
#gcubeapp_webapps:
# - { webapp_name: '', version: '' }
# - { webapp_name: '', version: '', webapp_group: '', description: '', exclude_handlers: [ '' ] }

View File

@ -3,10 +3,17 @@
<name>{{ item.1.webapp_name }}</name>
<group>{{ item.1.webapp_group }}</group>
<version>{{ item.1.version }}</version>
{% if item.1.description is defined %}
<description location="{{ item.1.description }}"/>
{% endif %}
{% if item.1.persistence_location is defined %}
<persistence location="{{ item.1.persistence_location }}"/>
{% endif %}
<exclude>/*</exclude>
{% if item.1.exclude_handlers is defined %}
{% for eh in exclude_handlers %}
<exclude {{ eh }}</exclude>
{% endfor %}
{% endif %}
</application>