diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-07-30 12:59:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-07-30 12:59:46 -0300 |
commit | 90ea5d043339b311c98e54e0540316163129dda1 (patch) | |
tree | b770585964ae56af36766325ec7405da5b2e3b69 /manifests | |
parent | 863f6ba863f78cfd6a22db3e5e33263646bd2b46 (diff) | |
download | puppet-nodo-90ea5d043339b311c98e54e0540316163129dda1.tar.gz puppet-nodo-90ea5d043339b311c98e54e0540316163129dda1.tar.bz2 |
Set PATH at nodo-apt-auto-upgrade
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/subsystem/apt.pp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp index 83d49aa..dffd42a 100644 --- a/manifests/subsystem/apt.pp +++ b/manifests/subsystem/apt.pp @@ -17,10 +17,11 @@ class nodo::subsystem::apt( $command = "${apt} update && ${apt} dist-upgrade -y && ${apt} autoremove -y && ${apt} clean" cron { 'nodo-apt-auto-upgrade': - ensure => $auto_upgrade, - command => $command, - user => 'root', - hour => 2, - minute => 0, + ensure => $auto_upgrade, + command => $command, + environment => 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', + user => 'root', + hour => 2, + minute => 0, } } |