]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
Bring /etc/apt/apt.conf.d/99from_puppet to init.
authorintrigeri <intrigeri@boum.org>
Sun, 17 Oct 2010 00:11:41 +0000 (02:11 +0200)
committerintrigeri <intrigeri@boum.org>
Sun, 17 Oct 2010 00:11:41 +0000 (02:11 +0200)
APT configuration has (unfortunately) nothing to do with APT preferences.

manifests/default_preferences.pp
manifests/init.pp

index 28471b954b2d17e4a4fb546f5bda58d1aeba132b..165b3643af4908fdbc4e277592338fd34c293cd3 100644 (file)
@@ -9,10 +9,6 @@ class apt::default_preferences {
           alias => apt_config,
           # only update together
           require => File["/etc/apt/sources.list"];
-        # little default settings which keep the system sane
-        "/etc/apt/apt.conf.d/99from_puppet":
-          content => "APT::Get::Show-Upgraded true;\nDSelect::Clean $real_apt_clean;\n",
-          before => Config_file[apt_config];
       }
     }
     'ubuntu': {
index ab90c9000f6d04617ca817dceddd19be2dc364ae..d34c89b569dec79ebb1a48e3ad2935160f2b1ee0 100644 (file)
@@ -103,6 +103,13 @@ class apt {
     }
   }
 
+  config_file {
+    # little default settings which keep the system sane
+    "/etc/apt/apt.conf.d/99from_puppet":
+      content => "APT::Get::Show-Upgraded true;\nDSelect::Clean $real_apt_clean;\n",
+      before => Config_file[apt_config];
+  }
+
   if $apt_unattended_upgrades {
     include apt::unattended_upgrades
   }