diff options
-rw-r--r-- | manifests/preferences.pp | 2 | ||||
-rw-r--r-- | templates/Ubuntu/preferences_maverick.erb | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/manifests/preferences.pp b/manifests/preferences.pp index 4c93542..71ef0a6 100644 --- a/manifests/preferences.pp +++ b/manifests/preferences.pp @@ -7,7 +7,7 @@ class apt::preferences { content => $custom_preferences ? { '' => $operatingsystem ? { 'debian' => template("apt/${operatingsystem}/preferences_${codename}.erb"), - 'ubuntu' => '', + 'ubuntu' => template("apt/${operatingsystem}/preferences_${codename}.erb"), }, default => $custom_preferences }, diff --git a/templates/Ubuntu/preferences_maverick.erb b/templates/Ubuntu/preferences_maverick.erb new file mode 100644 index 0000000..977a7e2 --- /dev/null +++ b/templates/Ubuntu/preferences_maverick.erb @@ -0,0 +1,19 @@ +Explanation: Ubuntu <%= codename %> +Package: * +Pin: release o=Ubuntu,a=<%= release %>,v=<%= release_version %>* +Pin-Priority: 990 + +Explanation: Ubuntu backports +Package: * +Pin: release a=<%= codename %>-backports +Pin-Priority: 200 + +Explanation: Ubuntu <%= next_release %> +Package: * +Pin: release o=Ubuntu,a=<%= next_release %> +Pin-Priority: 2 + +Explanation: Ubuntu fallback +Package: * +Pin: release o=Ubuntu +Pin-Priority: -10 |