1 class base_installation::cronie inherits base_installation {
2 ensure_packages(['cronie'])
4 Package["cronie"] -> Cron::Job <| |>
5 Package["cronie"] -> Cron::Job::Multiple <| |>
6 Package["cronie"] -> Cron::Daily <| |>
8 unless empty($base_installation::puppet_code_path) {
11 path => "$base_installation::puppet_code_path/.git/hooks/post-merge",
12 source => 'puppet:///modules/base_installation/cronie/puppet-post-merge',
17 cron::job { 'puppet-pull-apply':
19 environment => [ 'MAILTO=""' ],
20 command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
23 require => File['post-hook'],
24 description => "Pull git and apply puppet changes",
26 cron::job::multiple { 'puppet-apply':
28 environment => [ 'MAILTO=""' ],
31 command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
34 description => "Re-apply puppet changes regularly",
37 command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
40 description => "Re-apply puppet changes at reboot",
45 cron::daily { 'pacman_keys':
47 command => "pacman-key --populate archlinux",
51 description => "Populate pacman keys",