- cron { 'puppet-pull-apply':
- ensure => present,
- command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
- user => root,
- minute => '*/30',
- require => File['post-hook'],
+ cron::job { 'puppet-pull-apply':
+ ensure => present,
+ command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
+ user => root,
+ minute => '15,45',
+ require => File['post-hook'],
+ description => "Pull git and apply puppet changes",
+ }
+ 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",
+ }
+ ]