Package install_options

825 views
Skip to first unread message

Ellison Marks

unread,
Oct 12, 2012, 2:19:25 PM10/12/12
to puppet...@googlegroups.com
Now that the install_options parameter can be applied to all package providers, does anyone have advice on the best way to specify options to yum?

For example, considering the common pattern of leaving a repo disabled most of the time, if I wanted to pass

--enablerepo=epel

to yum, would I set

install_options => ['--enablerepo=epel']

or

install_options => [{'--enablerepo' => 'epel'}]

or

install_options => {'--enablerepo' => 'epel'}

or something completely different?

Josh Cooper

unread,
Oct 12, 2012, 3:10:07 PM10/12/12
to puppet...@googlegroups.com
Hi Ellison,
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/2sz8cFo8EEgJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

While install_options (and uninstall_options) are part of the package
type, only the msi/windows package provider supports them currently.
See http://docs.puppetlabs.com/references/latest/type.html#package

There are some tickets for updating other package providers to support
those options, but AFAIK, that has not been implemented yet.

Josh

--
Josh Cooper
Developer, Puppet Labs

Ellison Marks

unread,
Oct 12, 2012, 3:18:44 PM10/12/12
to puppet...@googlegroups.com
Oh, my mistake. I was looking at the breaking changes and saw

"Previously, the package resource’s install_options parameter was only used by the MSI package provider"

and assumed it meant all providers were given that option, but looking at the chart in the type reference, it's only msi, sun and windows. Thanks for the clarification.
Reply all
Reply to author
Forward
0 new messages