library/roles/smartgears/smart_executor: Refactored to use the maven_artifact module.

This commit is contained in:
Andrea Dell'Amico 2017-04-11 18:36:45 +02:00
parent 2238f7813c
commit 2681e0574d
2 changed files with 6 additions and 4 deletions

View File

@ -5,6 +5,8 @@ smart_executor_context: /smart-executor
smart_executor_version: 1.4.0-4.1.0-132084
smart_executor_name: smart-executor
smart_executor_file: '{{ smart_executor_name }}-{{ smart_executor_version }}.war'
smart_executor_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/vremanagement/smart-executor/{{ smart_executor_version }}/{{ smart_executor_file }}'
smart_executor_extension: war
smart_executor_group_id: org.gcube.vremanagement
smart_executor_file: '{{ smart_executor_name }}-{{ smart_executor_version }}.{{ smart_executor_extension }}'
smart_executor_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}'

View File

@ -10,8 +10,8 @@
# NOTE: Install as the smartgears user so we do not mess with the permissions
- name: Get the smart executor plugin
get_url: url={{ smart_executor_url }} dest={{ smartgears_user_home }}/{{ smart_executor_file }}
maven_artifact: artifact_id={{ smart_executor_name }} version={{ smart_executor_version | default('latest') }} group_id={{ smart_executor_group_id }} extension={{ smart_executor_extension | default('war') }} repository_url={{ smart_executor_url }} dest={{ smartgears_user_home }}/{{ smart_executor_file }}
- name: Create the smart executor working directory
file: path={{ smartgears_instance_path }}/webapps/{{ smart_executor_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}