Issue #2247 has been updated by Dominic Cleal.

Nigel Kersten wrote:
> `apt-get -t` is not the same as --enablerepo for yum.
> 
> The former simply adjusts priorities amongst active repositories, the latter 
> temporarily enables a disabled repository. 
> 
> Those are very different things.
> 
> I'm not feeling particularly good about trying to shoe-horn this into the 
> package type. Does *any* other platform have something like this?

I've just gone through all the package providers in next and have come up with 
a few similar situations, based on manpages I was able to find online.

* fink can enable/disable "trees" (i.e. unstable/stable) with complex 
expressions: [fink 
usage](http://www.finkproject.org/doc/users-guide/usage.php?phpLang=en)
* up2date can specify --channel (is this only for --installall?): [man 
up2date](http://linux.die.net/man/8/up2date)
* urpmi can specify a media repo name with the --media option: [man 
urpmi](http://anssi.hopto.org/man?program=urpmi&section=8)
* zypper can specify the repository name (repo:package): [zypper 
usage](http://en.opensuse.org/SDB:Zypper_usage#Selecting_packages)

There are a bunch of others that can specify the repository by URL, overriding 
their config file, either by an argument or environment variable.  The gem, 
pip, openbsd, freebsd and ports providers all implement this with the "source" 
package property while blastwave and pkgutil don't, but probably should.
----------------------------------------
Feature #2247: enablerepo and disablerepo for yum type
https://projects.puppetlabs.com/issues/2247

Author: Ben -
Status: Needs More Information
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet 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