improve prefrences snippet

This commit is contained in:
mh 2010-10-17 14:13:02 +02:00
parent 4d28e6668f
commit 822d482f4d

View 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;
}