class base_installation::cronie inherits base_installation {
ensure_packages(['cronie'])
+ Package["cronie"] -> Cron::Job <| |>
+ Package["cronie"] -> Cron::Job::Multiple <| |>
+ Package["cronie"] -> Cron::Daily <| |>
+
unless empty($base_installation::puppet_code_path) {
file { 'post-hook':
ensure => file,
}
cron::job { 'puppet-pull-apply':
ensure => present,
+ environment => [ 'MAILTO=""' ],
command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
user => root,
minute => '15,45',
}
cron::job::multiple { 'puppet-apply':
ensure => present,
+ environment => [ 'MAILTO=""' ],
jobs => [
{
command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",