From 0437fbeff3f0c7b5856fb269a8ec4563149fc456 Mon Sep 17 00:00:00 2001 From: Roberto Date: Mon, 27 Feb 2017 15:34:58 +0100 Subject: [PATCH] ../library/roles/smartgears/fhn_manager/defaults/main.ym converted to maven manage ../library/roles/smartgears/fhn_manager/tasks/main.yml --- smartgears/fhn_manager/defaults/main.yml | 9 ++++++--- smartgears/fhn_manager/tasks/main.yml | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/smartgears/fhn_manager/defaults/main.yml b/smartgears/fhn_manager/defaults/main.yml index 15f0102c..10105569 100644 --- a/smartgears/fhn_manager/defaults/main.yml +++ b/smartgears/fhn_manager/defaults/main.yml @@ -1,8 +1,11 @@ --- fhn_manager_install: False smart_executor_install: False -fhn_manager_version: 1.2.1-4.2.0-139966 +fhn_manager_version: latest fhn_manager_name: fhn-manager-service -fhn_manager_file: '{{ fhn_manager_name }}-{{ fhn_manager_version }}.war' -fhn_manager_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/resources/federation/{{fhn_manager_name}}/{{ fhn_manager_version }}/{{ fhn_manager_file }}' +fhn_group_id: org.gcube.resources.federation +fhn_extension: war + +fhn_manager_file: '{{ fhn_manager_name }}-{{ fhn_manager_version }}.{{fhn _extension }}' +fhn_manager_repository_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}' diff --git a/smartgears/fhn_manager/tasks/main.yml b/smartgears/fhn_manager/tasks/main.yml index 28041a8d..69013f69 100644 --- a/smartgears/fhn_manager/tasks/main.yml +++ b/smartgears/fhn_manager/tasks/main.yml @@ -21,8 +21,8 @@ - block: # NOTE: Install as the smartgears user so we do not mess with the permissions - name: Get the fhn-manager-service - get_url: url={{ fhn_manager_url }} dest={{ smartgears_user_home }}/{{ fhn_manager_file }} - + maven_artifact: artifact_id={{ fhn_manager_name }} version={{ fhn_manager_version | default(omit) }} group_id={{ fhn_group_id }} extension={{ fhn_extension | default('war') }} repository_url={{ fhn_manager_repository_url }} dest={{ smartgears_user_home }}/{{ fhn_manager_file }} + - name: Create the fhn manager working directory file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}