aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-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,
}
}