Issue #2247 has been updated by Markus Roberts.

First, this is really a feature request, not a bug, and ought to go in a 
feature release, not a bug release.

Second, the best idea I came up with would be to have a "repositories" 
attribute on the Package type, with the semantics that:

1) If it's left undefined, '', or an empty array, the behavior would be 
unchanged
2) If it's a non empty string it's treated as an array consisting of that one 
string
3) Otherwise the repos specified are passed as command-line arguments, e.g. 
repositories => [foo,bar]
    * On apt gives "-t foo -t bar"
    * On yum gives "--disablerepo=* --enablerepo=foo --enablerepo=bar"

What do people think of that?

----------------------------------------
Bug #2247: enablerepo and disablerepo for yum type
http://projects.puppetlabs.com/issues/2247

Author: Ben -
Status: Accepted
Priority: Normal
Assigned to: 
Category: package
Target version: 0.25.5
Affected version: 0.24.8
Keywords: yum
Branch: 


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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to