aboutsummaryrefslogtreecommitdiff
path: root/manifests/preferences.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/preferences.pp')
-rw-r--r--manifests/preferences.pp13
1 files changed, 4 insertions, 9 deletions
diff --git a/manifests/preferences.pp b/manifests/preferences.pp
index 772b426..4acfdaf 100644
--- a/manifests/preferences.pp
+++ b/manifests/preferences.pp
@@ -5,15 +5,10 @@ class apt::preferences {
module_dir{'apt/preferences': }
file{"${apt_preferences_dir}_header":
content => $custom_preferences ? {
- '' => 'Package: *
-Pin: release a=unstable
-Pin-Priority: 1
-
-Package: *
-Pin: release a=testing
-Pin-Priority: 2
-
-',
+ '' => $operatingsystem ? {
+ 'debian' => template("apt/${operatingsystem}/preferences_${codename}.erb"),
+ 'ubuntu' => '',
+ },
default => $custom_preferences
},
}