Thanks Paul; I don't have a problem getting the preseed onto the
system, it's just that dbconfig-common totally ignores the fact you've
tried to preseed it out of existence. :)

I may have to take this to the Debian bugtracker.

Craig

On Aug 12, 6:35 pm, Paul Hamby <pha...@gmail.com> wrote:
> We created a definition in our "apt" module called preseed_package and
> then we call
>
>         apt::preseed_package { <package_name>:
>          ensure => present,
>         }
>
> You can then create a preseed file for that package and have puppet
> put it on the host.
>
> From our "apt" module:
>         define preseed_package ( $ensure ) {
>          file { "/var/local/preseed":
>           ensure => directory,
>          }
>
>          file { "/var/local/preseed/$name.preseed":
>           source => "puppet:///apt/preseed/$name.preseed",
>           mode => 600,
>           backup => false,
>          }
>
>          package { "$name":
>           ensure => $ensure,
>           responsefile => "/var/local/preseed/$name.preseed",
>           require => File["/var/local/preseed/$name.preseed"],
>          }
>         }
>
> Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to