]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
Remove $apt_unattended_upgrades
authorGabriel Filion <lelutin@gmail.com>
Mon, 25 Oct 2010 16:32:49 +0000 (12:32 -0400)
committerGabriel Filion <lelutin@gmail.com>
Mon, 25 Oct 2010 18:15:52 +0000 (14:15 -0400)
Unattended upgrades are not always necessary. Including the
apt::unattended_upgrades class through the main apt class is not
appropriate. It is better to make nodes include the
apt::unattended_upgrades class explicitly.

Remove the $apt_unattended_upgrades variable along with the include in
the 'apt' class.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
manifests/init.pp

index dde9c295e21ee0a649d26ce322b2d7a5ffcb26f7..9298d1adc525490371181258dba8c464ce5df224 100644 (file)
@@ -48,14 +48,12 @@ class apt {
       include apt::preferences::absent
     }
     default: {
+      # When squeeze becomes the stable branch, transform this file's header
+      # into a preferences.d file
       include apt::preferences
     }
   }
 
-  if $apt_unattended_upgrades {
-    include apt::unattended_upgrades
-  }
-
   # watch apt.conf.d
   file { "/etc/apt/apt.conf.d": ensure => directory, checksum => mtime; }