From 6d9638b49d93cf0a5c0ec15b1e075f85e2c820ed Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 9 May 2017 17:01:54 +0200 Subject: [PATCH] Trying to add is-exporter-se-plugin to node17 --- .../is_exporter_se_plugin/defaults/main.yml | 5 +++++ .../is_exporter_se_plugin/handlers/main.yml | 3 +++ smartgears/is_exporter_se_plugin/tasks/main.yml | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 smartgears/is_exporter_se_plugin/defaults/main.yml create mode 100644 smartgears/is_exporter_se_plugin/handlers/main.yml create mode 100644 smartgears/is_exporter_se_plugin/tasks/main.yml diff --git a/smartgears/is_exporter_se_plugin/defaults/main.yml b/smartgears/is_exporter_se_plugin/defaults/main.yml new file mode 100644 index 00000000..11ef964e --- /dev/null +++ b/smartgears/is_exporter_se_plugin/defaults/main.yml @@ -0,0 +1,5 @@ +--- +is_exporter_se_plugin_install: False +is_exporter_se_plugin_ver: 1.0.0-4.5.0-XXXXX +is_exporter_se_plugin_name: 'is-exporter-se-plugin-{{ is_exporter_se_plugin_ver }}-jar-with-dependencies.jar' +is_exporter_se_plugin_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/information-system/is-exporter-se-plugin/{{ is_exporter_se_plugin_ver }}/{{ is_exporter_se_plugin_name }}' diff --git a/smartgears/is_exporter_se_plugin/handlers/main.yml b/smartgears/is_exporter_se_plugin/handlers/main.yml new file mode 100644 index 00000000..a9b4ffdd --- /dev/null +++ b/smartgears/is_exporter_se_plugin/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: Restart smartgears + service: name='tomcat-instance-{{ smartgears_http_port }}' state=restarted diff --git a/smartgears/is_exporter_se_plugin/tasks/main.yml b/smartgears/is_exporter_se_plugin/tasks/main.yml new file mode 100644 index 00000000..2719c053 --- /dev/null +++ b/smartgears/is_exporter_se_plugin/tasks/main.yml @@ -0,0 +1,15 @@ +--- +- name: Remove the old is-exporter plugin + shell: rm -f {{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib/is-exporter-se-plugin-*-jar-with-dependencies.jar + when: is_exporter_se_plugin_upgrade + tags: [ 'smartgears', 'is_exporter_se', 'tomcat' ] + + +- name: Get the is-exporter se plugin and install it inside the smart executor + become: True + become_user: '{{ smartgears_user }}' + get_url: url={{ is_exporter_se_plugin_url }} dest={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }}/WEB-INF/lib + when: is_exporter_se_plugin_install + notify: Restart smartgears + tags: [ 'smartgears', 'is_exporter_se', 'tomcat' ] +