- cron { 'puppet-apply-reboot':
- ensure => present,
- command => "cd $base_installation::puppet_code_path ; puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
- user => root,
- special => "reboot"
+ cron::job::multiple { 'puppet-apply':
+ ensure => present,
+ jobs => [
+ {
+ command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
+ user => root,
+ minute => '*/20',
+ description => "Re-apply puppet changes regularly",
+ },
+ {
+ command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
+ user => root,
+ special => "reboot",
+ description => "Re-apply puppet changes at reboot",
+ }
+ ]