From: mh Date: Thu, 28 Oct 2010 20:05:37 +0000 (+0200) Subject: put the file at the right place & fix typos X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=90c45cfe446588345eb5d9061ea359d121db2dc3;p=puppet-apt.git put the file at the right place & fix typos --- diff --git a/manifests/preferences_snippet.pp b/manifests/preferences_snippet.pp index 9da7a8e..fd2956d 100644 --- a/manifests/preferences_snippet.pp +++ b/manifests/preferences_snippet.pp @@ -21,13 +21,15 @@ define apt::preferences_snippet( # snippets, but since the preferences.d directory cannot be used in Debian # lenny, we can't generalize without going into ugly special-casing. case $source { - '' => - File["${apt::preferences::apt_preferences_dir/${name}"] { + '': { + File["${apt::preferences::apt_preferences_dir}/${name}"] { content => template("apt/preferences_snippet.erb") - }, - default => - File["${apt::preferences::apt_preferences_dir/${name}"] { + } + } + default: { + File["${apt::preferences::apt_preferences_dir}/${name}"] { source => $source } + } } } diff --git a/files/preferences_snippet.erb b/templates/preferences_snippet.erb similarity index 100% rename from files/preferences_snippet.erb rename to templates/preferences_snippet.erb