Commit 35a32c37bb2312d7cc728a64517e8f4869e9bb39
1 parent
6b4a5cf4
Exists in
master
and in
39 other branches
Adding update_badges to cron
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
puppet/modules/colab/manifests/cronjobs.pp
| @@ -2,12 +2,18 @@ | @@ -2,12 +2,18 @@ | ||
| 2 | class colab::cronjobs { | 2 | class colab::cronjobs { |
| 3 | 3 | ||
| 4 | $virtualenv_python = "/home/colab/.virtualenvs/colab/bin/python" | 4 | $virtualenv_python = "/home/colab/.virtualenvs/colab/bin/python" |
| 5 | - $manage_colab = "$virtualenv_python colab/src/manage.py" | 5 | + $manage_colab = "$virtualenv_python ~/colab/src/manage.py" |
| 6 | 6 | ||
| 7 | Cron { | 7 | Cron { |
| 8 | user => colab, | 8 | user => colab, |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | + cron { 'update-badges': | ||
| 12 | + command => "$manage_colab update_badges", | ||
| 13 | + hour => '*', | ||
| 14 | + minute => '*/5', | ||
| 15 | + } | ||
| 16 | + | ||
| 11 | cron { 'update-haystack-index': | 17 | cron { 'update-haystack-index': |
| 12 | command => "$manage_colab update_index --age=1", | 18 | command => "$manage_colab update_index --age=1", |
| 13 | hour => '*', | 19 | hour => '*', |