summaryrefslogtreecommitdiff
path: root/manifests/preferences_snippet.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/preferences_snippet.pp')
-rw-r--r--manifests/preferences_snippet.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/preferences_snippet.pp b/manifests/preferences_snippet.pp
index 52edf97..8d82a42 100644
--- a/manifests/preferences_snippet.pp
+++ b/manifests/preferences_snippet.pp
@@ -1,10 +1,14 @@
define apt::preferences_snippet(
- $ensure => 'present',
- $content
+ $ensure = 'present',
+ $release,
+ $priority
){
file { "/var/lib/puppet/modules/apt/preferences/${name}":
ensure => $ensure,
- content => "${content}\n",
+ content => "Package: ${name}
+Pin: release a=${release}
+Pin-Priority: ${priority}
+",
notify => Exec['concat_/var/lib/puppet/modules/apt/preferences'],
owner => root, group => 0, mode => 0600;
}