d4science-ghn-cluster, library/roles: Refactor smartgears/gcubeapp-setup and change all the use cases accordingly.

This commit is contained in:
Andrea Dell'Amico 2017-06-26 16:07:43 +02:00
parent bf9eaa3309
commit f711a7b8b1
8 changed files with 5 additions and 27 deletions

View File

@ -3,7 +3,7 @@ geonetwork_install: False
geonetwork_upgrade: False
geonetwork_major_version: '2.6'
geonetwork_minor_version: 0
geonetwork_app_name: geonetwork
geonetwork_app_name: GeoNetwork
geonetwork_version: '{{ geonetwork_major_version }}.{{ geonetwork_minor_version }}'
geonetwork_download_url: 'https://downloads.sourceforge.net/project/geonetwork/GeoNetwork_opensource/v{{ geonetwork_version }}/geonetwork.war?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fgeonetwork%2Ffiles%2FGeoNetwork_opensource%2Fv{{ geonetwork_version }}%2F&ts=1485267039&use_mirror=netcologne'

View File

@ -2,7 +2,7 @@
geoserver_install: False
geoserver_major_version: '2.10'
geoserver_minor_version: 3
geoserver_app_name: geoserver
geoserver_app_name: GeoServer
geoserver_version: '{{ geoserver_major_version }}.{{ geoserver_minor_version }}'
geoserver_download_url: 'http://sourceforge.net/projects/geoserver/files/GeoServer/{{ geoserver_version }}/geoserver-{{ geoserver_version }}-war.zip'

View File

@ -1,8 +0,0 @@
---
- name: Install the gcube-app file to make geoserver smartgears compatible
template: src=gcube-app.xml.j2 dest={{ item.instance_path }}/webapps/{{ geoserver_app_name }}/WEB-INF/gcube-app.xml owner={{ item.user }} group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart
when: geoserver_install
tags: geoserver

View File

@ -1,4 +1,2 @@
---
- include: geoserver.yml
# - include: geoserver-gcubeapp.yml
# when: smartgears_node is defined and smartgears_node

View File

@ -1,12 +0,0 @@
<application mode="online">
<name>{{ smartgears_gcube_app_name }}</name>
<group>{{ smartgears_gcube_app_group }}</group>
<version>1.0</version>
{% if smartgears_persistence_location is defined %}
<persistence location="{{ smartgears_persistence_location }}"/>
{% endif %}
<exclude>/*</exclude>
</application>

View File

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

View File

@ -1,6 +1,6 @@
---
- name: Install the gcube-app file to make the webapp smartgears compatible
template: src=gcube-app.xml.j2 dest={{ item.webapp_path | default('/home/gcube/tomcat') }}/webapps/{{ item.webapp_name }}/WEB-INF/gcube-app.xml owner={{ smartgears_user }} group={{ smartgears_user }}
template: src=gcube-app.xml.j2 dest={{ item.webapp_path | default('/home/gcube/tomcat') }}/webapps/{{ item.context }}/WEB-INF/gcube-app.xml owner={{ smartgears_user }} group={{ smartgears_user }}
with_items: '{{ gcubeapp_webapps | default (omit) }}'
notify: Restart smartgears
when: gcubeapp_setup

View File

@ -1,4 +1,4 @@
<application mode="online">
<application mode="{{ smartgears_application_mode }}">
<name>{{ item.webapp_name }}</name>
<group>{{ item.webapp_group }}</group>