remove duplicate definition for preseeded_package, that was a mistake
This commit is contained in:
parent
91a49f53c4
commit
9b40b913ed
1 changed files with 0 additions and 24 deletions
|
@ -158,30 +158,6 @@ class apt {
|
|||
}
|
||||
}
|
||||
|
||||
# workaround for preseeded_package component
|
||||
file { "/var/cache": ensure => directory }
|
||||
file { "/var/cache/local": ensure => directory }
|
||||
file { "/var/cache/local/preseeding/": ensure => directory }
|
||||
|
||||
define preseeded_package ($content = "", $ensure = "installed") {
|
||||
$seedfile = "/var/cache/local/preseeding/$name.seeds"
|
||||
$real_content = $content ? {
|
||||
"" => template ( "$debian_version/$name.seeds" ),
|
||||
Default => $content
|
||||
}
|
||||
|
||||
file{ $seedfile:
|
||||
content => $real_content,
|
||||
mode => 0600, owner => root, group => root,
|
||||
}
|
||||
|
||||
package { $name:
|
||||
ensure => $ensure,
|
||||
responsefile => $seedfile,
|
||||
require => File[$seedfile],
|
||||
}
|
||||
}
|
||||
|
||||
define upgrade_package ($version = "") {
|
||||
case $version {
|
||||
'': {
|
||||
|
|
Loading…
Reference in a new issue