library/roles/redmine: Install a cron job together with the update_reminder plugin

dnet-openaire/host_vars/nextissue.research-infrastructures.eu/main.yml: a variable was missing.
This commit is contained in:
Andrea Dell'Amico 2015-11-18 15:07:26 +01:00
parent 9f506ae533
commit 9b3d838d54
3 changed files with 9 additions and 4 deletions

View File

@ -30,6 +30,8 @@ rm_autowatcher_plugin: False
rm_issuereminder_plugin: False
# https://github.com/arkhitech/redmine_update_reminder
rm_updatereminder_plugin: False
rm_updatereminder_plugin_freq_min: 0
rm_updatereminder_plugin_freq_hour: 0
rm_mention_plugin: False
rm_mentions_plugin: False
rm_defaultcustomquery_plugin: False

View File

@ -197,10 +197,12 @@
when: rm_updatereminder_plugin
notify:
- Bundle install and reconfigure redmine
tags:
- redmine
- redmine_plugins
- redmine_plugins_updatereminder
tags: [ 'redmine', 'redmine_plugins', 'redmine_plugins_updatereminder' ]
- name: Install the update reminder plugin cron job. The ruby scheduler does not work, it seems
template: src=redmine_update_reminder.cron.j2 dest=/etc/cron.d/redmine_update_reminder owner=root group=root mode=0644
when: rm_updatereminder_plugin
tags: [ 'redmine', 'redmine_plugins', 'redmine_plugins_updatereminder' ]
- name: Install the mention plugin
git: repo=https://github.com/stpl/redmine_mention_plugin dest={{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/plugins/redmine_mention_plugin update=no

View File

@ -0,0 +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