Issue #2247 has been updated by Ben -.

apt-get has the "-t" which allows you do do a similar thing.  the thing is that 
puppet provides an 'type' to create and manage yum repositories, "yumrepo", so 
adding enablerepo support to the package type provides a more complete solution 
for applicable platforms.

>From man apt-get.

       -t, --target-release, --default-release
           This option controls the default input to the policy engine, it 
creates a default pin at priority 990 using
           the specified release string. This overrides the general settings in 
/etc/apt/preferences. Specifically
           pinned packages are not affected by the value of this option. In 
short, this option lets you have simple
           control over which distribution packages will be retrieved from. 
Some common examples might be -t ´2.1*´ or
           -t unstable. Configuration Item: APT::Default-Release; see also the 
apt_preferences(5) manual page.
----------------------------------------
Bug #2247: enablerepo and disablerepo for yum type
http://projects.reductivelabs.com/issues/2247

Author: Ben -
Status: Re-opened
Priority: Normal
Assigned to: 
Category: package
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: yum


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://reductivelabs.com/redmine/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