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":
|
cron { "puppet-check":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
command => "/usr/local/sbin/puppet-check",
|
environment => $operatingsystem ? {
|
||||||
user => root,
|
openbsd => "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin",
|
||||||
hour => 5,
|
default => undef,
|
||||||
minute => 0,
|
},
|
||||||
require => File["/usr/local/sbin/puppet-check"],
|
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