From f51ffe774075edbc27c11c7ba0add61312b101f1 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 1 Oct 2015 13:17:24 +0200 Subject: [PATCH] library/roles/redmine/templates/redmine-ldap-sync.cron.j2: the cron frequency is now a variable d4science-ghn-cluster/inventory/hosts.egi: separate inventory file for the EGI images --- redmine/defaults/main.yml | 2 ++ redmine/templates/redmine-ldap-sync.cron.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/redmine/defaults/main.yml b/redmine/defaults/main.yml index 6dd83ce..08f2c3a 100644 --- a/redmine/defaults/main.yml +++ b/redmine/defaults/main.yml @@ -14,6 +14,8 @@ redmine_db_host: localhost redmine_inst_dir: redmine redmine_user: redmine redmine_group: redmine +# Minutes, from 1 to 60 +redmine_ldap_sync_freq: 10 redmine_glob_user: www-data redmine_glob_group: www-data diff --git a/redmine/templates/redmine-ldap-sync.cron.j2 b/redmine/templates/redmine-ldap-sync.cron.j2 index 1f43da7..3053e5b 100644 --- a/redmine/templates/redmine-ldap-sync.cron.j2 +++ b/redmine/templates/redmine-ldap-sync.cron.j2 @@ -1 +1 @@ -*/30 * * * * {{ redmine_user }} rake -f {{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Rakefile --silent redmine:plugins:ldap_sync:sync_users RAILS_ENV=production >{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/log/redmine-ldap-sync.log 2>&1 +*/{{ redmine_ldap_sync_freq }} * * * * {{ redmine_user }} rake -f {{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Rakefile --silent redmine:plugins:ldap_sync:sync_users RAILS_ENV=production >{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/log/redmine-ldap-sync.log 2>&1