aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2010-10-17 20:36:45 -0400
committerGabriel Filion <lelutin@gmail.com>2010-10-17 20:36:45 -0400
commitebcda455df36aefac48bb831192f2b4e7af8fafc (patch)
tree4d6ec779bb52334a902d763bf28fbd4fc7cde4b6 /manifests/init.pp
parent296593bcbd7d5cc329737830bb938f93abf3fa3d (diff)
downloadpuppet-apt-ebcda455df36aefac48bb831192f2b4e7af8fafc.tar.gz
puppet-apt-ebcda455df36aefac48bb831192f2b4e7af8fafc.tar.bz2
Make $apt_clean effective in all cases
The file "/etc/apt/apt.conf.d/from_puppet" is currently only defined when $custom_sources_list is not used (it is declared in default_preferences). Bring this file up in the apt class so that using custom sources doesn't remove its addition. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 98ec91c..9ef1cea 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -29,6 +29,13 @@ class apt {
}
}
+ config_file {
+ # little default settings which keep the system sane
+ "/etc/apt/apt.conf.d/from_puppet":
+ content => "APT::Get::Show-Upgraded true;\nDSelect::Clean $real_apt_clean;\n",
+ before => Config_file[apt_config];
+ }
+
case $custom_preferences {
'': {
include apt::default_preferences