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

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