Set PATH for puppet-check cronjob on OpenBSD

This commit is contained in:
Ossi Salmi 2011-02-25 01:05:30 +02:00 committed by Timo Mkinen
parent 3df7bf7cd5
commit 749e5013b8

View file

@ -95,6 +95,10 @@ class puppet::client {
} }
cron { "puppet-check": cron { "puppet-check":
ensure => present, ensure => present,
environment => $operatingsystem ? {
openbsd => "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
default => undef,
},
command => "/usr/local/sbin/puppet-check", command => "/usr/local/sbin/puppet-check",
user => root, user => root,
hour => 5, hour => 5,