aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-28 22:05:37 +0200
committermh <mh@immerda.ch>2010-10-28 22:05:37 +0200
commit90c45cfe446588345eb5d9061ea359d121db2dc3 (patch)
tree423279c65c256e4b85a03949c15cbc9fc90c8344
parentb5c504e19ef3f798d752bc43aa121496bff8d9aa (diff)
downloadpuppet-apt-90c45cfe446588345eb5d9061ea359d121db2dc3.tar.gz
puppet-apt-90c45cfe446588345eb5d9061ea359d121db2dc3.tar.bz2
put the file at the right place & fix typos
-rw-r--r--manifests/preferences_snippet.pp12
-rw-r--r--templates/preferences_snippet.erb (renamed from files/preferences_snippet.erb)0
2 files changed, 7 insertions, 5 deletions
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
index 4dfb701..4dfb701 100644
--- a/files/preferences_snippet.erb
+++ b/templates/preferences_snippet.erb