X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fbase_installation%2Fmanifests%2Fcronie.pp;h=e8d5dfd6980f2d2531963097e1b35893fdb513dc;hb=c443842eae41fb28d5608acfd303106e5f24798a;hp=bcdd9a75f3661b31bd6fdc295934f77b72fd9563;hpb=7fed35a408b9ec37454169425823785b5fc8978b;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/base_installation/manifests/cronie.pp b/modules/base_installation/manifests/cronie.pp index bcdd9a7..e8d5dfd 100644 --- a/modules/base_installation/manifests/cronie.pp +++ b/modules/base_installation/manifests/cronie.pp @@ -10,12 +10,31 @@ class base_installation::cronie inherits base_installation { owner => root, group => root, } - cron { 'puppet-apply': + 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 { 'puppet-apply': + ensure => present, + command => "cd $base_installation::puppet_code_path ; puppet apply $base_installation::puppet_code_path/manifests/site.pp", + user => root, + minute => '*/20' + } + 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 { 'pacman_keys': + ensure => present, + command => "pacman-key --populate archlinux", + user => root, + minute => "0", + hour => "1", + } } }