Issue #2247 has been updated by Ben -.
Markus Roberts wrote: > 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? A "repositories" attribute would be the most generic for both yum and apt. Its not ideal for yum users who are used to being able to enable or disable one repo in addition to the default enabled ones however apt doesn't have an equivalent to "disablerepo" so yum users will need to list ALL required repos to satisfy dependencies for the given package/s. e.g. repositories => [ os, updates, epel, epel-testing ] I can live with that. ---------------------------------------- Feature #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.
