From 21df3e5cfdae5d32ef1e6ff25f909b0a80b76b5e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 8 Sep 2016 14:47:44 +0200 Subject: [PATCH] library/roles/smartgears/dataminer_app: Install the algorithms jars from their svn repository. See https://support.d4science.org/issues/4917 --- smartgears/dataminer_app/defaults/main.yml | 2 ++ smartgears/dataminer_app/tasks/dataminer-app.yml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/smartgears/dataminer_app/defaults/main.yml b/smartgears/dataminer_app/defaults/main.yml index ec5c665b..b6147d85 100644 --- a/smartgears/dataminer_app/defaults/main.yml +++ b/smartgears/dataminer_app/defaults/main.yml @@ -72,6 +72,8 @@ dataminer_configuration_jar_url: 'http://svn.research-infrastructures.eu/public/ dataminer_data_file_from_thredds: 'http://thredds.d4science.org/thredds/fileServer/public/netcdf/gebco_08_OCEANS_CLIMATOLOGY_METEOROLOGY_ATMOSPHERE_.nc' +dataminer_algorithms_repo: 'http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/algorithms' + # Those packages are needed to download and configure the dataminer application dataminer_additional_packages: - subversion diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index 397ddb69..7f50695b 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -112,6 +112,14 @@ when: dataminer_app_install tags: [ 'tomcat', 'dataminer', 'wps' ] +- name: Download the dataminer algorithms jars from subversion + become: True + become_user: '{{ smartgears_user }}' + subversion: repo={{ dataminer_algorithms_repo }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/WEB-INF/lib + notify: Restart smartgears + when: dataminer_app_install + tags: [ 'tomcat', 'dataminer', 'wps' ] + - name: Install the wps config file become: True become_user: '{{ smartgears_user }}'