forked from ISTI-ansible-roles/ansible-roles
dataminer: The algorithms directory structure has been refactored.
This commit is contained in:
parent
096b600d98
commit
b6703aa9b1
|
@ -26,7 +26,7 @@ dataminer_algorithms_extension: tar.gz
|
||||||
dataminer_algorithms_file: '{{ dataminer_algorithms_name }}-{{ dataminer_algorithms_version }}.{{ dataminer_algorithms_extension }}'
|
dataminer_algorithms_file: '{{ dataminer_algorithms_name }}-{{ dataminer_algorithms_version }}.{{ dataminer_algorithms_extension }}'
|
||||||
dataminer_algorithms_base_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ dataminer_algorithms_gcube_repository }}'
|
dataminer_algorithms_base_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ dataminer_algorithms_gcube_repository }}'
|
||||||
# Algorithms updater
|
# Algorithms updater
|
||||||
dataminer_wps_algorithms_svn: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/algorithms/
|
dataminer_wps_algorithms_svn: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/algorithms/{{ dataminer_infra_reference }}
|
||||||
dataminer_wps_algorithms_dest: '{{ smartgears_user_home }}/wps_algorithms/algorithms'
|
dataminer_wps_algorithms_dest: '{{ smartgears_user_home }}/wps_algorithms/algorithms'
|
||||||
dataminer_algorithms_updater_cron: present
|
dataminer_algorithms_updater_cron: present
|
||||||
dataminer_algorithms_updater_minute_frequency: "0"
|
dataminer_algorithms_updater_minute_frequency: "0"
|
||||||
|
|
|
@ -44,7 +44,12 @@
|
||||||
notify: Restart smartgears
|
notify: Restart smartgears
|
||||||
|
|
||||||
- name: Create a directory where to install the algorithms directory
|
- name: Create a directory where to install the algorithms directory
|
||||||
file: path={{ smartgears_user_home }}/wps_algorithms state=directory
|
file: path={{ smartgears_user_home }}/wps_algorithms/algorithms state=directory
|
||||||
|
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_svn' ]
|
||||||
|
|
||||||
|
- name: Download the WPS algorithms from subversion
|
||||||
|
subversion: repo={{ dataminer_wps_algorithms_svn }} dest={{ smartgears_user_home }}/wps_algorithms/algorithms/{{ dataminer_infra_reference }} checkout=yes force=yes update=yes
|
||||||
|
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_svn' ]
|
||||||
|
|
||||||
- name: Get and unpack the algorithms installer
|
- name: Get and unpack the algorithms installer
|
||||||
maven_artifact: artifact_id={{ dataminer_algorithms_name }} version={{ dataminer_algorithms_version | default(omit) }} group_id={{ dataminer_algorithms_group_id }} extension={{ dataminer_algorithms_extension | default('war') }} repository_url={{ dataminer_algorithms_base_url }} dest={{ smartgears_downloads_dir }}/{{ dataminer_algorithms_file }}
|
maven_artifact: artifact_id={{ dataminer_algorithms_name }} version={{ dataminer_algorithms_version | default(omit) }} group_id={{ dataminer_algorithms_group_id }} extension={{ dataminer_algorithms_extension | default('war') }} repository_url={{ dataminer_algorithms_base_url }} dest={{ smartgears_downloads_dir }}/{{ dataminer_algorithms_file }}
|
||||||
|
@ -60,10 +65,6 @@
|
||||||
unarchive: copy=no src={{ smartgears_downloads_dir }}/{{ dataminer_algorithms_file }} dest={{ smartgears_user_home }} creates='{{ smartgears_user_home }}/algorithmInstaller/addAlgorithm.sh'
|
unarchive: copy=no src={{ smartgears_downloads_dir }}/{{ dataminer_algorithms_file }} dest={{ smartgears_user_home }} creates='{{ smartgears_user_home }}/algorithmInstaller/addAlgorithm.sh'
|
||||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_installer' ]
|
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_installer' ]
|
||||||
|
|
||||||
- name: Download the WPS algorithms from subversion
|
|
||||||
subversion: repo={{ dataminer_wps_algorithms_svn }} dest={{ smartgears_user_home }}/wps_algorithms/algorithms checkout=yes force=yes update=yes
|
|
||||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_svn' ]
|
|
||||||
|
|
||||||
- name: Create a directory where to install the algorithms updater logs and data
|
- name: Create a directory where to install the algorithms updater logs and data
|
||||||
file: path={{ smartgears_user_home }}/wps_algorithms_install_log state=directory
|
file: path={{ smartgears_user_home }}/wps_algorithms_install_log state=directory
|
||||||
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_script' ]
|
tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_script' ]
|
||||||
|
|
Loading…
Reference in New Issue