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

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

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