X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fbase_installation%2Fmanifests%2Fcronie.pp;h=923e181d61d315e9c86e824225184848a38155a3;hb=0f3b69eb188346cb657850ea218918bd4a43460d;hp=3558d9f06334e51bc5f235249c284199c45e7fae;hpb=2859008efe8f0a75344c7ba1c9c6e4d589f92da3;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/base_installation/manifests/cronie.pp b/modules/base_installation/manifests/cronie.pp index 3558d9f..923e181 100644 --- a/modules/base_installation/manifests/cronie.pp +++ b/modules/base_installation/manifests/cronie.pp @@ -1,6 +1,10 @@ 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, @@ -12,6 +16,7 @@ class base_installation::cronie inherits base_installation { } 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', @@ -20,6 +25,7 @@ class base_installation::cronie inherits base_installation { } 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",