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 }}'