From 09134661c7cf5d316e5b7bd127b0aec2109091e7 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 13 Jan 2015 13:53:05 -0200 Subject: [PATCH] Add puppet cron jobs to sync ldap users and Moodle stats --- puppet/manifests/site.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp index 068e284..d338e73 100644 --- a/puppet/manifests/site.pp +++ b/puppet/manifests/site.pp @@ -190,8 +190,20 @@ cron { 'clearsessions': hour => [0,] } +cron { 'sync_ldap': + command => "${sigi_venv_dir}/bin/python ${sigi_dir}/manage.py sync_ldap", + user => 'sigi', + hour => [0,] +} + cron { 'gera_map_data': command => "${sigi_venv_dir}/bin/python ${sigi_dir}/manage.py gera_map_data", user => 'sigi', hour => "*/1", } + +cron { 'get_moodle_stats': + command => "${sigi_venv_dir}/bin/python ${sigi_dir}/manage.py get_moodle_stats -v 0", + user => 'sigi', + hour => "*/1", +}