forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/smartgears: Add the root VO as available scope by default, when we explicitly set a scope list.
This commit is contained in:
parent
cc0e28b4bb
commit
3118736ea0
|
@ -28,6 +28,9 @@ smartgears_vo_name:
|
||||||
smartgears_hostname: '{{ ansible_fqdn }}'
|
smartgears_hostname: '{{ ansible_fqdn }}'
|
||||||
smartgears_country: it
|
smartgears_country: it
|
||||||
smartgears_location: pisa
|
smartgears_location: pisa
|
||||||
|
smartgears_latitude: 41.9000
|
||||||
|
smartgears_longitude: 12.5000
|
||||||
|
|
||||||
|
|
||||||
smartgears_http_port: 9000
|
smartgears_http_port: 9000
|
||||||
smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
|
smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
|
||||||
|
@ -36,6 +39,7 @@ smartgears_loglevel: WARN
|
||||||
|
|
||||||
smartgears_tomcat_contexts: [ 'whn-manager' ]
|
smartgears_tomcat_contexts: [ 'whn-manager' ]
|
||||||
smartgears_define_context_vo: False
|
smartgears_define_context_vo: False
|
||||||
|
smartgears_define_context_root_vo: True
|
||||||
smartgears_context: '/smart-executor'
|
smartgears_context: '/smart-executor'
|
||||||
smartgears_contexts_list:
|
smartgears_contexts_list:
|
||||||
- ''
|
- ''
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<port>{{ item.http_port }}</port>
|
<port>{{ item.http_port }}</port>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<infrastructure>{{ smartgears_infrastructure_name }}</infrastructure>
|
<infrastructure>{{ smartgears_infrastructure_name }}</infrastructure>
|
||||||
|
|
||||||
{% if smartgears_vo %}
|
{% if smartgears_vo %}
|
||||||
{% for vo_n in smartgears_vo_name %}
|
{% for vo_n in smartgears_vo_name %}
|
||||||
<vo>{{ vo_n }}</vo>
|
<vo>{{ vo_n }}</vo>
|
||||||
|
@ -20,8 +21,8 @@
|
||||||
<site>
|
<site>
|
||||||
<country>{{ smartgears_country }}</country>
|
<country>{{ smartgears_country }}</country>
|
||||||
<location>{{ smartgears_location }}</location>
|
<location>{{ smartgears_location }}</location>
|
||||||
<latitude>41.9000</latitude>
|
<latitude>{{ smartgears_latitude }}</latitude>
|
||||||
<longitude>12.5000</longitude>
|
<longitude>{{ smartgears_longitude }}</longitude>
|
||||||
</site>
|
</site>
|
||||||
|
|
||||||
<property name='SmartGearsDistributionBundle' value='UnBundled' />
|
<property name='SmartGearsDistributionBundle' value='UnBundled' />
|
||||||
|
@ -30,11 +31,17 @@
|
||||||
|
|
||||||
{% if smartgears_define_context_vo %}
|
{% if smartgears_define_context_vo %}
|
||||||
<application mode="{{ smartgears_application_mode }}" context="{{ smartgears_context }}">
|
<application mode="{{ smartgears_application_mode }}" context="{{ smartgears_context }}">
|
||||||
|
|
||||||
|
{% if smartgears_define_context_root_vo %}
|
||||||
|
<scope>/{{ smartgears_infrastructure_name }}</scope>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for vo_n in smartgears_vo_name %}
|
{% for vo_n in smartgears_vo_name %}
|
||||||
{% for context in smartgears_contexts_list %}
|
{% for context in smartgears_contexts_list %}
|
||||||
<scope>/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ context }}</scope>
|
<scope>/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ context }}</scope>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue