aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/apt.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp
index 85152d0..55f7569 100644
--- a/manifests/subsystem/apt.pp
+++ b/manifests/subsystem/apt.pp
@@ -9,6 +9,7 @@ class nodo::subsystem::apt(
owner => root,
group => root,
mode => '0644',
+ notify => Exec['apt-auto-update'],
content => $ensure ? {
'present' => template("nodo/apt/${::operatingsystem}.sources.list.erb"),
default => undef,
@@ -20,6 +21,12 @@ class nodo::subsystem::apt(
$apt = '/usr/bin/apt-get'
$command = "${apt} update ${log} && ${apt} dist-upgrade -y ${log} && ${apt} autoremove -y ${log} && ${apt} clean ${log}"
+ exec { 'nodo-apt-auto-update':
+ command => "${apt} update ${log}",
+ user => "root",
+ refreshonly => true,
+ }
+
cron { 'nodo-apt-auto-upgrade':
ensure => $auto_upgrade,
command => $command,