summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests/cron.pp
blob: 811ad11d2903c6af1a2502be7bbd32686d1747a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class site_webapp::cron {

  # cron tasks that need to be performed to cleanup the database
  cron {
    'remove_expired_sessions':
      command     => 'cd /srv/leap/webapp && bundle exec rake cleanup:sessions',
      environment => 'RAILS_ENV=production',
      hour        => 2,
      minute      => 30;

    'remove_expired_tokens':
      command     => 'cd /srv/leap/webapp && bundle exec rake cleanup:tokens',
      environment => 'RAILS_ENV=production',
      hour        => 3,
      minute      => 0;
  }
}