--- /dev/null
+class base_installation::cronie inherits base_installation {
+ ensure_packages(['cronie'])
+
+ unless empty($base_installation::puppet_code_path) {
+ file { 'post-hook':
+ ensure => file,
+ path => "$base_installation::puppet_code_path/.git/hooks/post-merge",
+ source => 'puppet:///modules/base_installation/cronie/puppet-post-merge',
+ mode => '0755',
+ owner => root,
+ group => root,
+ }
+ cron { 'puppet-apply':
+ ensure => present,
+ command => "cd $base_installation::puppet_code_path ; /usr/bin/git pull",
+ user => root,
+ minute => '*/30',
+ require => File['post-hook'],
+ }
+ }
+}