import "config.pp" package { "puppetmaster": ensure => installed, } # updates the puppet configuration dir with git repositories # every 5 minutes. cron { puppet-conf: command => "git --git-dir=/etc/puppet/.git/ pull /var/git/repositories/puppet.git master && \ git --git-dir=/etc/puppet/.git/ --work-tree=/etc/puppet/ checkout -f", user => root, hour => '*', minute => '*/5', ensure => present, } # runs the service service { "puppetmasterd": ensure => stopped, depends => Package["puppetmaster"], }