library/roles/smartgears/ckan_connector: Fix the nexus URL.

library/roles/smartgears/dataminer_app: Remove some duplicate libraries, add two.
This commit is contained in:
Andrea Dell'Amico 2016-06-27 15:36:37 +02:00
parent 2641b4d863
commit 900d414f4a
4 changed files with 29 additions and 6 deletions

View File

@ -2,7 +2,7 @@
gcube_repository: 'gcube-snapshots'
ckan_connector_plugin_install: False
ckan_connector_ver: 1.0.0
ckan_connector_name: 'ckan_connector-{{ ckan_connector_ver }}.war'
ckan_connector_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/data/access/{{ ckan_connector_ver}}/{{ ckan_connector_name }}'
ckan_connector_name: 'ckan_connector-{{ ckan_connector_ver }}-20160627.090904-1.war'
ckan_connector_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/data/access/ckan_connector/{{ ckan_connector_ver}}-SNAPSHOT/{{ ckan_connector_name }}'
ckan_connector_war_file: ckan-connector.war
ckan_connector_user: ckan_connector

View File

@ -2,9 +2,8 @@
- block:
- name: Get the CKAN connector war file
#get_url: url={{ ckan_connector_url }} dest={{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
copy: src={{ ckan_connector_war_file }} dest={{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
get_url: url={{ ckan_connector_url }} dest={{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
- name: Unpack the CKAN connector war file
shell: mkdir {{ smartgears_instance_path }}/webapps/ckan-connector ; cd {{ smartgears_instance_path }}/webapps/ckan-connector ; jar xf {{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
args:

View File

@ -18,14 +18,28 @@ dataminer_dataminer_jar_version_range: "[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)"
dataminer_gcube_web_xml: "http://data.d4science.org/id?fileName=web.xml&smp-id=56615ae0e4b0158fcb561817&contentType=application%2Fxml"
dataminer_gcube_app_xml: "http://data.d4science.org/id?fileName=gcube-app.xml&smp-id=56615ae0e4b0158fcb561815&contentType=application%2Fxml"
dataminer_additional_jars_urls:
- 'http://data.d4science.org/dU50M0VvS1RuV2xrMXBkVER6VzVEYUtoSWhEVFdCWXFHbWJQNStIS0N6Yz0'
- 'http://data.d4science.org/OVd0bVZaVlpSdDFrMXBkVER6VzVEU1ZnMmcvYWFrb2tHbWJQNStIS0N6Yz0'
dataminer_jars_to_remove:
- 52n-wps-server-3.3.2-SNAPSHOT.jar
- 52n-wps-client-lib-3.2.0.jar
- 52n-wps-io-impl-3.3.1.jar
- 52n-wps-database-3.3.1.jar
- 52n-wps-server-3.3.1.jar
- 52n-wps-algorithm-3.3.1.jar
- 52n-wps-commons-3.3.1.jar
- 52n-wps-io-3.3.1.jar
- 52n-wps-server-3.3.2-SNAPSHOT.jar
- 52n-wps-algorithm-3.3.2-SNAPSHOT.jar
- 52n-wps-algorithm-3.4.0.jar
- 52n-wps-server-3.3.2.jar
- 52n-wps-server-3.4.0.jar
- 52n-wps-algorithm-3.4.0.jar
- 52n-wps-commons-3.4.0.jar
- 52n-wps-database-3.4.0.jar
- 52n-wps-io-3.4.0.jar
- 52n-wps-io-impl-3.4.0.jar
- commons-beanutils-1.7.0.jar
- dom4j-1.6.jar
- jaxen-1.1.1.jar
@ -37,6 +51,7 @@ dataminer_jars_to_remove:
- spring-context-2.0.6.jar
- spring-core-2.0.6.jar
- registry-publisher-1.2.5-3.10.0.jar
dataminer_ecocfg_svn_repo: 'http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/cfg'

View File

@ -70,6 +70,15 @@
when: dataminer_app_install
tags: [ 'tomcat', 'dataminer', 'wps' ]
- name: Install the 52n jars modified by D4Science
become: True
become_user: '{{ smartgears_user }}'
get_url: url={{ item }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/WEB-INF/lib/
with_items: '{{ dataminer_additional_jars_urls }}'
notify: Restart smartgears
when: dataminer_app_install
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_new_jars' ]
- name: Remove the unwanted jars from the 52 north webapp distribution and from the org.gcube.dataanalysis dataminer dependencies
become: True
become_user: '{{ smartgears_user }}'