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 command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
22 require => File['post-hook'],
23 description => "Pull git and apply puppet changes",
25 cron::job::multiple { 'puppet-apply':
29 command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
32 description => "Re-apply puppet changes regularly",
35 command => "cd $base_installation::puppet_code_path ; /usr/local/sbin/puppet_apply $base_installation::puppet_code_path/manifests/site.pp",
38 description => "Re-apply puppet changes at reboot",
43 cron::daily { 'pacman_keys':
45 command => "pacman-key --populate archlinux",
49 description => "Populate pacman keys",