blob: ac9a821d85b59e94804511422de91df070a0b4f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
define apt::preseeded_package ($content = "", $ensure = "installed") {
$seedfile = "/var/cache/local/preseeding/${name}.seeds"
file { $seedfile:
content => $content ? {
"" => template ( "site_apt/${::lsbdistcodename}/${name}.seeds" ),
default => $content
},
mode => 0600, owner => root, group => root,
}
package { $name:
ensure => $ensure,
responsefile => $seedfile,
require => File[$seedfile],
}
}
|