]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
improve prefrences snippet
authormh <mh@immerda.ch>
Sun, 17 Oct 2010 12:13:02 +0000 (14:13 +0200)
committermh <mh@immerda.ch>
Sun, 17 Oct 2010 12:13:02 +0000 (14:13 +0200)
manifests/preferences_snippet.pp

index 52edf9764fbc441a715a50b59177d490d6a31cce..8d82a42fd1cf2b6c949dd0ea173d4ca1ad387749 100644 (file)
@@ -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;
   }