aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-17 14:13:02 +0200
committermh <mh@immerda.ch>2010-10-17 14:13:02 +0200
commit822d482f4d6e94546cb5454d571b4d58525af94b (patch)
treed3fa84581b323e4cd2bc748873c86e2b1152ba52 /manifests
parent4d28e6668f0c26d7484198c1cdf418c83898b3c7 (diff)
downloadpuppet-apt-822d482f4d6e94546cb5454d571b4d58525af94b.tar.gz
puppet-apt-822d482f4d6e94546cb5454d571b4d58525af94b.tar.bz2
improve prefrences snippet
Diffstat (limited to 'manifests')
-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;
}