From 86df7704663897a42a27e3d645cf7c8cb13a59ec Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 19 Nov 2015 12:49:30 +0100 Subject: [PATCH] library/roles/redmine: permit weekly run of the redmine_update_reminder plugin --- redmine/defaults/main.yml | 4 +++- redmine/templates/redmine-ldap-sync.cron.j2 | 2 +- redmine/templates/redmine_update_reminder.cron.j2 | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/redmine/defaults/main.yml b/redmine/defaults/main.yml index 91248d7e..2fddbab9 100644 --- a/redmine/defaults/main.yml +++ b/redmine/defaults/main.yml @@ -29,9 +29,11 @@ rm_scrum2b_plugin: False rm_autowatcher_plugin: False rm_issuereminder_plugin: False # https://github.com/arkhitech/redmine_update_reminder +# We configure to send the email reminders once a week on monday morning by default rm_updatereminder_plugin: False rm_updatereminder_plugin_freq_min: 0 -rm_updatereminder_plugin_freq_hour: 0 +rm_updatereminder_plugin_freq_hour: 5 +rm_updatereminder_plugin_freq_weekday: 1 rm_mention_plugin: False rm_mentions_plugin: False rm_defaultcustomquery_plugin: False diff --git a/redmine/templates/redmine-ldap-sync.cron.j2 b/redmine/templates/redmine-ldap-sync.cron.j2 index 3053e5b8..7243d795 100644 --- a/redmine/templates/redmine-ldap-sync.cron.j2 +++ b/redmine/templates/redmine-ldap-sync.cron.j2 @@ -1 +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 +*/{{ redmine_ldap_sync_freq }} * * * * {{ redmine_user }} /usr/local/bin/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 diff --git a/redmine/templates/redmine_update_reminder.cron.j2 b/redmine/templates/redmine_update_reminder.cron.j2 index b657dc9d..d137e557 100644 --- a/redmine/templates/redmine_update_reminder.cron.j2 +++ b/redmine/templates/redmine_update_reminder.cron.j2 @@ -1 +1 @@ -{{ rm_updatereminder_plugin_freq_min }} {{ rm_updatereminder_plugin_freq_hour }} * * * {{ redmine_user }} rake -f {{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Rakefile --silent RAILS_ENV=production redmine_update_reminder:send_reminders >{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/log/redmine-update_send_reminders.log 2>&1 +{{ rm_updatereminder_plugin_freq_min }} {{ rm_updatereminder_plugin_freq_hour }} * * {{ rm_updatereminder_plugin_freq_weekday }} {{ redmine_user }} /usr/local/bin/rake -f {{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Rakefile --silent RAILS_ENV=production redmine_update_reminder:send_reminders >{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/log/redmine-update_send_reminders.log 2>&1