From 68c0687eecff1f57e9b5eeb0f3f56822a44522f9 Mon Sep 17 00:00:00 2001 From: "tommaso.piccioli" Date: Thu, 30 Mar 2017 19:13:22 +0200 Subject: [PATCH] new workspace-repository-prod node for jackrabbit (postgres on workspace-repository-pg) --- smartgears/home_library/defaults/main.yml | 8 ++++++++ smartgears/home_library/tasks/main.yml | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 smartgears/home_library/defaults/main.yml create mode 100644 smartgears/home_library/tasks/main.yml diff --git a/smartgears/home_library/defaults/main.yml b/smartgears/home_library/defaults/main.yml new file mode 100644 index 00000000..5e25055d --- /dev/null +++ b/smartgears/home_library/defaults/main.yml @@ -0,0 +1,8 @@ +--- +home_library_gcube_repository: 'gcube-staging' +home_library_install: False +home_library_ver: 1.7.0-4.3.0-144852 +home_library_name: home-library-webapp +home_library_filename: '{{ home_library_name }}-{{ home_library_ver }}.war' +home_library_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ home_library_gcube_repository }}/org/gcube/data/access/{{ home_library_name }}/{{ home_library_ver}}/{{ home_library_filename }}' +home_library_war_file: '{{ home_library_name }}.war' diff --git a/smartgears/home_library/tasks/main.yml b/smartgears/home_library/tasks/main.yml new file mode 100644 index 00000000..53ecb8b0 --- /dev/null +++ b/smartgears/home_library/tasks/main.yml @@ -0,0 +1,22 @@ +--- +- block: + + - name: Remove the installed HOME LIBRARY connector before upgrading + file: dest={{ item }} state=absent + with_items: + - '{{ smartgears_instance_path }}/webapps/home-library-webapp' + - '{{ smartgears_instance_path }}/webapps/home-library-webapp.war' + when: smartgears_upgrade + + - name: Get the HOME LIBRARY connector war file + get_url: url={{ home_library_url }} dest={{ smartgears_instance_path }}/webapps/{{ home_library_war_file }} + +# - name: Unpack the HOME LIBRARY connector war file +# shell: mkdir {{ smartgears_instance_path }}/webapps/home-library-webapp ; cd {{ smartgears_instance_path }}/webapps/home-library-webapp ; jar xf {{ smartgears_instance_path }}/webapps/{{ home_library_war_file }} +# args: +# creates: '{{ smartgears_instance_path }}/webapps/home-library-webapp/WEB-INF/web.xml' + + become: True + become_user: '{{ smartgears_user }}' + when: home_library_install + tags: [ 'smartgears', 'home_library', 'tomcat' ]