From d52a919c7276f3ca4dde09a7bed3ab9eb19a414f Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 6 Oct 2017 10:14:58 +0200 Subject: [PATCH] library/roles/smartgears/fhn_manager/defaults/main.yml update service version library/roles/smartgears/fhn_manager/tasks/main.yml add cronjob task for resfreshing the certificates periodically --- smartgears/fhn_manager/defaults/main.yml | 2 +- smartgears/fhn_manager/tasks/main.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/smartgears/fhn_manager/defaults/main.yml b/smartgears/fhn_manager/defaults/main.yml index 8d9a3309..74a68289 100644 --- a/smartgears/fhn_manager/defaults/main.yml +++ b/smartgears/fhn_manager/defaults/main.yml @@ -1,7 +1,7 @@ --- fhn_manager_install: False smart_executor_install: False -fhn_manager_version: 1.2.3-4.7.0-153229 +fhn_manager_version: 1.2.4-4.7.0-154701 fhn_manager_name: fhn-manager-service fhn_group_id: org.gcube.resources.federation fhn_extension: war diff --git a/smartgears/fhn_manager/tasks/main.yml b/smartgears/fhn_manager/tasks/main.yml index 35e1aeac..8df2d62d 100644 --- a/smartgears/fhn_manager/tasks/main.yml +++ b/smartgears/fhn_manager/tasks/main.yml @@ -28,6 +28,10 @@ - name: Install the cron job that delete the /tmp directory every day cron: name="Delete tmp folder" special_time=daily job="find /tmp ! -name 'x509up_u1000' -type f -exec rm -f {} \; >/dev/null 2>&1" + - name: Install the cron job that refresh certificates every week + become_user: root + cron: name="refresh certificates" special_time=weekly job="usr/sbin/fetch-crl >/dev/null 2>&1" + become: True become_user: '{{ d4science_user }}' when: fhn_manager_install