From a19949c63f6293faaefb9e2cf30a049360b703f7 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 1 Jul 2016 12:32:24 +0200 Subject: [PATCH] library/roles/smartgears: Manage the gcube pre production keys. --- smartgears/dataminer_app/tasks/install-gcube-key.yml | 8 ++++++++ smartgears/install-gcube-key/tasks/main.yml | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/smartgears/dataminer_app/tasks/install-gcube-key.yml b/smartgears/dataminer_app/tasks/install-gcube-key.yml index 9d6e9464..8644d074 100644 --- a/smartgears/dataminer_app/tasks/install-gcube-key.yml +++ b/smartgears/dataminer_app/tasks/install-gcube-key.yml @@ -18,3 +18,11 @@ notify: Restart smartgears when: install_gcube_dev_key tags: [ 'dataminer', 'gcube_key' ] + +- name: Install the preprod gcube keys + get_url: url={{ item.url }} dest={{ smartgears_instance_path }}/webapps/{{ dataminer_52north_webapp_name }}/ecocfg/PARALLEL_PROCESSING owner={{ smartgears_user }} group={{ smartgears_user }} mode=0400 + with_items: + - '{{ gcube_pre_key_1 }}' + notify: Restart smartgears + when: install_gcube_preprod_key + tags: [ 'dataminer', 'gcube_key' ] diff --git a/smartgears/install-gcube-key/tasks/main.yml b/smartgears/install-gcube-key/tasks/main.yml index 9c17a5c8..87a109f1 100644 --- a/smartgears/install-gcube-key/tasks/main.yml +++ b/smartgears/install-gcube-key/tasks/main.yml @@ -17,3 +17,10 @@ when: install_gcube_dev_key tags: gcube_key +- name: Install the preprod gcube keys + get_url: url={{ item.url }} dest=/{{ gcube_tomcat_lib_dir }}/{{ item.name }} owner={{ smartgears_user }} group={{ smartgears_user }} mode=0400 + with_items: + - '{{ gcube_pre_key_1 }}' + notify: Restart smartgears + when: install_gcube_preprod_key + tags: gcube_key