summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README7
-rw-r--r--manifests/preferences_snippet.pp1
-rw-r--r--templates/preferences_snippet.erb2
3 files changed, 9 insertions, 1 deletions
diff --git a/README b/README
index bdb8185..82d216a 100644
--- a/README
+++ b/README
@@ -314,6 +314,13 @@ Example:
priority => 999;
}
+ apt::preferences_snippet{
+ 'unstable_fallback':
+ package => '*',
+ release => 'unstable',
+ priority => 1;
+ }
+
apt::preseeded_package
----------------------
diff --git a/manifests/preferences_snippet.pp b/manifests/preferences_snippet.pp
index 91b3dde..908ca73 100644
--- a/manifests/preferences_snippet.pp
+++ b/manifests/preferences_snippet.pp
@@ -1,4 +1,5 @@
define apt::preferences_snippet(
+ $package = $name,
$ensure = 'present',
$source = '',
$release,
diff --git a/templates/preferences_snippet.erb b/templates/preferences_snippet.erb
index 4dfb701..0c4e136 100644
--- a/templates/preferences_snippet.erb
+++ b/templates/preferences_snippet.erb
@@ -1,4 +1,4 @@
-Package: <%= name %>
+Package: <%= package %>
Pin: release a=<%= release %>
Pin-Priority: <%= priority %>