aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2010-10-18 01:45:22 -0400
committerGabriel Filion <lelutin@gmail.com>2010-10-18 01:51:16 -0400
commit4dbcd092817708292de6463777b331c8dbc7e727 (patch)
tree54c59888cf4045cd7c3c340b862c8448dc43c37a /manifests
parent973657848100d227c10f4b51a23bf24a56550c8d (diff)
downloadpuppet-apt-4dbcd092817708292de6463777b331c8dbc7e727.tar.gz
puppet-apt-4dbcd092817708292de6463777b331c8dbc7e727.tar.bz2
Make it possible to ensure preferences is absent
The current code makes it mandatory to have a file /etc/apt/preferences present. In the event that this file is empty or contains a space, apt-get update cannot execute. Add a case with the special value "false" that ensures the file does not exist. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 57a685c..60c95a1 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -40,6 +40,12 @@ class apt {
'': {
include apt::default_preferences
}
+ false: {
+ config_file { "/etc/apt/preferences":
+ alias => "apt_config",
+ ensure => absent;
+ }
+ }
default: {
config_file { "/etc/apt/preferences":
content => $custom_preferences,