new workspace-repository-prod node for jackrabbit (postgres on workspace-repository-pg)

This commit is contained in:
Tommaso Piccioli 2017-03-30 19:13:22 +02:00
parent 5ea7b20a28
commit 68c0687eec
2 changed files with 30 additions and 0 deletions

View File

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

View File

@ -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' ]