remove duplicate definition for preseeded_package, that was a mistake

This commit is contained in:
Micah Anderson 2008-09-29 14:43:11 -04:00
parent 91a49f53c4
commit 9b40b913ed

View file

@ -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 {
'': {