From c0864e4e438e2939b16d7ed92c3fe5ef3cad2efb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 19 Sep 2017 14:17:37 +0200 Subject: [PATCH] dataminer: Give the possibility to not install the algorithms updater cron job. --- smartgears/dataminer_app/defaults/main.yml | 1 + smartgears/dataminer_app/tasks/dataminer-app.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/smartgears/dataminer_app/defaults/main.yml b/smartgears/dataminer_app/defaults/main.yml index 72d6d0b4..c62fe605 100644 --- a/smartgears/dataminer_app/defaults/main.yml +++ b/smartgears/dataminer_app/defaults/main.yml @@ -26,6 +26,7 @@ dataminer_algorithms_base_url: 'http://maven.research-infrastructures.eu/nexus/c # Algorithms updater dataminer_wps_algorithms_svn: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/DataMinerConfiguration/algorithms/ dataminer_wps_algorithms_dest: '{{ smartgears_user_home }}/wps_algorithms/algorithms' +dataminer_algorithms_updater_cron: present dataminer_algorithms_updater_minute_frequency: "0" dataminer_algorithms_updater_hour_frequency: "*" diff --git a/smartgears/dataminer_app/tasks/dataminer-app.yml b/smartgears/dataminer_app/tasks/dataminer-app.yml index b37e8ed0..66eb7e06 100644 --- a/smartgears/dataminer_app/tasks/dataminer-app.yml +++ b/smartgears/dataminer_app/tasks/dataminer-app.yml @@ -74,7 +74,7 @@ tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_script' ] - name: Cron job that updates the algorithms repository and adds the missing algorithms configurations - cron: name="SVN update the algorithms repository" minute="{{ dataminer_algorithms_updater_minute_frequency }}" hour="{{ dataminer_algorithms_updater_hour_frequency }}" job="/usr/local/bin/algorithms-updater > {{ smartgears_user_home }}/wps_algorithms_install_log/algorithms_updater_cron.log 2>&1" user='{{ smartgears_user }}' state=present + cron: name="SVN update the algorithms repository" minute="{{ dataminer_algorithms_updater_minute_frequency }}" hour="{{ dataminer_algorithms_updater_hour_frequency }}" job="/usr/local/bin/algorithms-updater > {{ smartgears_user_home }}/wps_algorithms_install_log/algorithms_updater_cron.log 2>&1" user='{{ smartgears_user }}' state={{ dataminer_algorithms_updater_cron }} tags: [ 'tomcat', 'dataminer', 'wps', 'dataminer_algorithms', 'dataminer_algorithms_cron' ] - name: Create a directory where to install the gebco_08.nc data file