Ask Your Question

Dpkg provider options?

asked 2014-01-21 13:41:16 -0500

KDub gravatar image

Hi, I looked through the docs but couldn't see anything about this? If I'm on a Debian-type system, and want to pass dpkg options to the package provider, how do I do it?

I tried something like this, but it appears that "install_options" is only for Windows? Anyone know how to pass options to the dpkg provider?

  # Download SBT Deb package
  exec { 'download-sbt':
    command => "wget $sbturl -O /opt/$pkgname ; touch /usr/local/src/.sbtdownloaded",
    creates => "/usr/local/src/.sbtdownloaded",
  # Unpack SBT
  package { 'sbt':
    provider => dpkg,
    ensure   => installed,
    install_options => [ '--ignore-depends=java2-runtime' ],
    source   => "/opt/$pkgname",


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-21 15:28:09 -0500

The following link provides a possible solution. It is probably not ideal but according to the puppet documentation only the following providers support install_options (msi, openbsd, rpm, sun, windows, and zypper). In which case the "responsefile" parameter should be used to specify the desired answers/switches used during the package installation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-01-21 13:41:16 -0500

Seen: 980 times

Last updated: Jan 21 '14