Issue #2247 has been updated by Adrien Thebo.

We just had a fairly lengthy discussion about this issue and the proposed fix, 
and we didn't come to a unanimous conclusion on it yet. The disagreement 
centers around how much information we should put in the types about providers, 
and how we want to handle very provider specific configurations. This sort of 
functionality is definitely needed, but right now the package type has 17 
providers and if we try to account for every reasonable provider use that 
number could explode. (For instance, Gentoo could use parameters like 
`package_use`, `package_mask`, `package_unmask`, `package_keywords`, 
`package_license`, and so on.)

A recent pull request (https://github.com/puppetlabs/puppet/pull/2034) proposed 
a new approach where we add a `package_options` parameter that is used to 
accept provider specific configuration. This would make it very easy to add 
support for `enablerepo` and `disablerepo` without having to touch a lot of 
other locations. Would this sort of approach be satisfactory?

For instance:

    package { 'sl':
      ensure => present,
      package_options => {
        enablerepos => 'epel',
        disablerepos => 'security',
      }
    }


----------------------------------------
Feature #2247: enablerepo and disablerepo for yum type
https://projects.puppetlabs.com/issues/2247#change-99730

* Author: Ben -
* Status: Investigating
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: package
* Target version: 3.x
* Affected Puppet version: 0.24.8
* Keywords: yum enablerepo customer
* Branch: https://github.com/puppetlabs/puppet/pull/1974
----------------------------------------
it would be nice to be able to enable a disabled repo for the installation on 
one package.

for example installing facter from EPEL.

something like;

<pre>
package { "facter": ensure => installed, enablerepo => [ "epel", "epel-testing" 
]; }
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to