../library/roles/smartgears/fhn_manager/defaults/main.ym converted to maven manage

../library/roles/smartgears/fhn_manager/tasks/main.yml
This commit is contained in:
Roberto Cirillo 2017-02-27 15:34:58 +01:00
parent 6882aeea94
commit 0437fbeff3
2 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,11 @@
--- ---
fhn_manager_install: False fhn_manager_install: False
smart_executor_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_name: fhn-manager-service
fhn_manager_file: '{{ fhn_manager_name }}-{{ fhn_manager_version }}.war' fhn_group_id: org.gcube.resources.federation
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_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 }}'

View File

@ -21,8 +21,8 @@
- block: - block:
# NOTE: Install as the smartgears user so we do not mess with the permissions # NOTE: Install as the smartgears user so we do not mess with the permissions
- name: Get the fhn-manager-service - 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 - name: Create the fhn manager working directory
file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }} file: path={{ smartgears_instance_path }}/webapps/{{ fhn_manager_name }} state=directory owner={{ smartgears_user }} group={{ smartgears_user }}