forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/smartgears: container.xml can contain scopes for more than one context.
This commit is contained in:
parent
f864b8648e
commit
18bbc85a22
|
@ -31,7 +31,6 @@ smartgears_location: pisa
|
|||
smartgears_latitude: 41.9000
|
||||
smartgears_longitude: 12.5000
|
||||
|
||||
|
||||
smartgears_http_port: 9000
|
||||
smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
|
||||
|
||||
|
@ -39,22 +38,15 @@ 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:
|
||||
smartgears_define_context_root_vo: False
|
||||
smartgears_context:
|
||||
- name: '/smart-executor'
|
||||
scopes:
|
||||
- ''
|
||||
- '/BiodiversityLab'
|
||||
- '/BiOnym'
|
||||
- '/ScalableDataMining'
|
||||
|
||||
# dev has two different contexts
|
||||
#smart_executor_contexts_list:
|
||||
# - ''
|
||||
# - '/devVRE'
|
||||
|
||||
# - ''
|
||||
# - '/NextNext'
|
||||
|
||||
# The iptables rules use this
|
||||
http_port: '{{ smartgears_http_port }}'
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
<port>{{ item.http_port }}</port>
|
||||
{% endif %}
|
||||
<infrastructure>{{ smartgears_infrastructure_name }}</infrastructure>
|
||||
|
||||
{% if smartgears_vo %}
|
||||
{% for vo_n in smartgears_vo_name %}
|
||||
<vo>{{ vo_n }}</vo>
|
||||
|
@ -28,21 +27,19 @@
|
|||
<property name='SmartGearsDistributionBundle' value='UnBundled' />
|
||||
<property name='SmartGearsDistribution' value='{{ smartgears_distribution_version }}' />
|
||||
<publication-frequency>60</publication-frequency>
|
||||
|
||||
{% if smartgears_define_context_vo %}
|
||||
<application mode="{{ smartgears_application_mode }}" context="{{ smartgears_context }}">
|
||||
{% for context in smartgears_context %}
|
||||
|
||||
<application mode="{{ smartgears_application_mode }}" context="{{ context.name }}">
|
||||
{% if smartgears_define_context_root_vo %}
|
||||
<scope>/{{ smartgears_infrastructure_name }}</scope>
|
||||
{% endif %}
|
||||
|
||||
{% for vo_n in smartgears_vo_name %}
|
||||
{% for context in smartgears_contexts_list %}
|
||||
<scope>/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ context }}</scope>
|
||||
{% for vo_scope in context.scopes %}
|
||||
<scope>/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ vo_scope }}</scope>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
</application>
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</container>
|
||||
|
|
Loading…
Reference in New Issue