aboutsummaryrefslogtreecommitdiff
path: root/manifests/maintenance.pp
blob: 16f4c6aa78be075420311b4bd966eeb35c063f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class drupal::maintenance {
  # Run drupal cron
  cron { "drupal-cron":
    command  => "/usr/local/bin/drupal cron &> /dev/null",
    user     => root,
    hour     => "*/1",
    minute   => "15",
    ensure   => present,
    require  => File['/usr/local/sbin/drupal'],
  }

  # Keep themes and modules up-to-date
  cron { "drupal-update":
    command  => "/usr/local/bin/drupal cron-update",
    user     => root,
    # Run once a week after security releases (usually on Wednesdays)
    weekday  => 5,
    hour     => "02",
    minute   => "30",
    ensure   => present,
  }
}