library/roles/redmine: Cron job for the issue_reminder plugin.

This commit is contained in:
Andrea Dell'Amico 2015-11-22 19:48:52 +01:00
parent f73e24e32b
commit 27295c3028
3 changed files with 10 additions and 4 deletions

View File

@ -30,6 +30,9 @@ rm_advanced_roadmap_plugin: False
rm_scrum2b_plugin: False
rm_autowatcher_plugin: False
rm_issuereminder_plugin: False
rm_issue_reminder_plugin_freq_min: 0
rm_issue_reminder_plugin_freq_hour: 5
rm_issue_reminder_plugin_freq_weekday: 1
# 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

View File

@ -150,10 +150,12 @@
when: rm_issuereminder_plugin
notify:
- Bundle install and reconfigure redmine
tags:
- redmine
- redmine_plugins
- redmine_plugins_issuereminder
tags: [ 'redmine', 'redmine_plugins', 'redmine_plugins_issuereminder' ]
- name: Install the issue reminder plugin cron job.
template: src=redmine_issue_reminder.cron.j2 dest=/etc/cron.d/redmine_issue_reminder owner=root group=root mode=0644
when: rm_issuereminder_plugin
tags: [ 'redmine', 'redmine_plugins', 'redmine_plugins_issuereminder' ]
- name: Install the update reminder plugin
git: repo=https://github.com/arkhitech/redmine_update_reminder dest={{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/plugins/redmine_update_reminder update=no

View File

@ -0,0 +1 @@
{{ rm_issue_reminder_plugin_freq_min }} {{ rm_issue_reminder_plugin_freq_hour }} * * {{ rm_issue_reminder_plugin_freq_weekday }} {{ redmine_user }} /usr/local/bin/rake -f {{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/Rakefile --silent RAILS_ENV=production reminder:exec >{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/log/redmine-issue_reminder.log 2>&1