FAQ
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?

--
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-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

  • Josh Cooper at Oct 12, 2012 at 7:41 pm
    Hi Ellison,
    On Fri, Oct 12, 2012 at 11:19 AM, Ellison Marks wrote:
    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?

    --
    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-users@googlegroups.com.
    To unsubscribe from this group, send email to
    puppet-users+unsubscribe@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

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Ellison Marks at Oct 12, 2012 at 7:18 pm
    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.
    On Friday, October 12, 2012 12:10:18 PM UTC-7, Josh Cooper wrote:

    Hi Ellison,
    On Fri, Oct 12, 2012 at 11:19 AM, Ellison Marks wrote:
    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?

    --
    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<javascript:>.
    To unsubscribe from this group, send email to
    puppet-users...@googlegroups.com <javascript:>.
    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
    --
    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/-/s9nWzcYL6hYJ.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedOct 12, '12 at 7:18p
activeOct 12, '12 at 7:41p
posts3
users2
websitepuppetlabs.com

2 users in discussion

Ellison Marks: 2 posts Josh Cooper: 1 post

People

Translate

site design / logo © 2022 Grokbase