library/roles/smartgears/smartgears: Remove smartgears < 2.0 related stuff.

This commit is contained in:
Andrea Dell'Amico 2016-12-06 15:36:51 +01:00
parent 7c7077f4bf
commit 6f795a39b8
2 changed files with 1 additions and 37 deletions

View File

@ -21,11 +21,8 @@ smartgears_file: 'smartgears-distribution-{{ smartgears_distribution_version }}.
smartgears_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/distribution/smartgears-distribution/{{ smartgears_distribution_version }}/{{ smartgears_file }}'
smartgears_mode: online
smartgears_application_mode: online
# Production infra and VO
# Production infra
smartgears_infrastructure_name: "d4science.research-infrastructures.eu"
smartgears_vo: True
smartgears_vo_name:
- gCubeApps
smartgears_hostname: '{{ ansible_fqdn }}'
smartgears_country: it
smartgears_location: pisa
@ -38,15 +35,6 @@ smartgears_service_name: 'tomcat-instance-{{ smartgears_http_port }}'
smartgears_loglevel: WARN
smartgears_tomcat_contexts: [ 'whn-manager' ]
smartgears_define_context_vo: False
smartgears_define_context_root_vo: False
smartgears_context:
- name: '/smart-executor'
scopes:
- ''
- '/BiodiversityLab'
- '/BiOnym'
- '/ScalableDataMining'
smartgears_scopes:
- '/{{ smartgears_infrastructure_name }}'

View File

@ -29,27 +29,3 @@
<publication-frequency>{{ smartgears_publication_frequency }}</publication-frequency>
<infrastructure>{{ smartgears_infrastructure_name }}</infrastructure>
{% if smartgears_distribution_version | version_compare('2.0.0', '<') %}
{% if smartgears_vo %}
{% for vo_n in smartgears_vo_name %}
<vo>{{ vo_n }}</vo>
{% endfor %}
{% endif %}
{% if smartgears_define_context_vo %}
{% 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 vo_scope in context.scopes %}
<scope>/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ vo_scope }}</scope>
{% endfor %}
{% endfor %}
</application>
{% endfor %}
{% endif %}
{% endif %}