d4science-ghn-cluster, library/roles/smartgears/meteodataimporter_se_plugin: Add the meteo data importer smartexecutor plugin.

This commit is contained in:
Andrea Dell'Amico 2017-07-03 12:44:45 +02:00
parent 2ab3561c55
commit 7468678ae7
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
meteodataimporter_se_plugin_install: False
meteodataimporter_se_plugin_upgrade: False
meteodataimporter_se_plugin_name: meteo-data-importer-with-dependencies.jar
meteodataimporter_se_plugin_url: 'http://data.d4science.org/M1dPTld0M3Nnc0pwVE0rTTJGclVMQWpyM2YwcEY0UVdHbWJQNStIS0N6Yz0'

View File

@ -0,0 +1,18 @@
---
- block:
- name: Remove the old meteodataimporter
shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ item }}
with_items:
- '{{ meteodataimporter_se_plugin_name }}'
when: meteodataimporter_se_plugin_upgrade
- name: Get the meteodataimporter smart executor plugin
get_url: url={{ meteodataimporter_se_plugin_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/{{ meteodataimporter_se_plugin_name }}
when: meteodataimporter_se_plugin_install
notify: Restart smartgears
tags: [ 'smartgears', 'meteodataimporter_se', 'tomcat' ]
become: True
become_user: '{{ smartgears_user }}'
when: meteodataimporter_se_plugin_install
tags: [ 'smartgears', 'meteodataimporter_se', 'tomcat' ]