aboutsummaryrefslogtreecommitdiff
path: root/manifests/preferences.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/preferences.pp')
-rw-r--r--manifests/preferences.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/preferences.pp b/manifests/preferences.pp
index 5be3bd0..4acfdaf 100644
--- a/manifests/preferences.pp
+++ b/manifests/preferences.pp
@@ -4,9 +4,13 @@ class apt::preferences {
$apt_preferences_dir = "${common::moduledir::module_dir_path}/apt/preferences"
module_dir{'apt/preferences': }
file{"${apt_preferences_dir}_header":
- source => ["puppet:///modules/site-apt/${fqdn}/preferences",
- "puppet:///modules/site-apt/preferences",
- "puppet:///modules/apt/preferences"]
+ content => $custom_preferences ? {
+ '' => $operatingsystem ? {
+ 'debian' => template("apt/${operatingsystem}/preferences_${codename}.erb"),
+ 'ubuntu' => '',
+ },
+ default => $custom_preferences
+ },
}
concatenated_file{'/etc/apt/preferences':