improve prefrences snippet
This commit is contained in:
parent
4d28e6668f
commit
822d482f4d
1 changed files with 7 additions and 3 deletions
|
@ -1,10 +1,14 @@
|
||||||
define apt::preferences_snippet(
|
define apt::preferences_snippet(
|
||||||
$ensure => 'present',
|
$ensure = 'present',
|
||||||
$content
|
$release,
|
||||||
|
$priority
|
||||||
){
|
){
|
||||||
file { "/var/lib/puppet/modules/apt/preferences/${name}":
|
file { "/var/lib/puppet/modules/apt/preferences/${name}":
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
content => "${content}\n",
|
content => "Package: ${name}
|
||||||
|
Pin: release a=${release}
|
||||||
|
Pin-Priority: ${priority}
|
||||||
|
",
|
||||||
notify => Exec['concat_/var/lib/puppet/modules/apt/preferences'],
|
notify => Exec['concat_/var/lib/puppet/modules/apt/preferences'],
|
||||||
owner => root, group => 0, mode => 0600;
|
owner => root, group => 0, mode => 0600;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue