Set PATH for puppet-check cronjob on OpenBSD
This commit is contained in:
parent
3df7bf7cd5
commit
749e5013b8
1 changed files with 10 additions and 6 deletions
|
@ -94,12 +94,16 @@ class puppet::client {
|
|||
},
|
||||
}
|
||||
cron { "puppet-check":
|
||||
ensure => present,
|
||||
command => "/usr/local/sbin/puppet-check",
|
||||
user => root,
|
||||
hour => 5,
|
||||
minute => 0,
|
||||
require => File["/usr/local/sbin/puppet-check"],
|
||||
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",
|
||||
user => root,
|
||||
hour => 5,
|
||||
minute => 0,
|
||||
require => File["/usr/local/sbin/puppet-check"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue