aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-07-30 12:59:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-07-30 12:59:46 -0300
commit90ea5d043339b311c98e54e0540316163129dda1 (patch)
treeb770585964ae56af36766325ec7405da5b2e3b69 /manifests/subsystem
parent863f6ba863f78cfd6a22db3e5e33263646bd2b46 (diff)
downloadpuppet-nodo-90ea5d043339b311c98e54e0540316163129dda1.tar.gz
puppet-nodo-90ea5d043339b311c98e54e0540316163129dda1.tar.bz2
Set PATH at nodo-apt-auto-upgrade
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/apt.pp11
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,
}
}