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, } }