Issue #2247 has been updated by Jo Rhett.
Being generic is nice, but reality on the ground is that options aren't
generic. Having a singular "install_options" doesn't help when then data inside
the install options is provider specific.
Your Yum repo options won't match your Apt options, nor any other provider. The
best way to make clean multipurpose puppet policy would be to allow the same
package to have yum-specific options, apt-specific options, etc and each
provider ignores the options it doesn't need. Without that, you're just going
to repeat the generic install_options inside a selector, which is less readable
and less re-usable. Frankly the following is much better than what we have
today.
package { 'puppet':
yum_repo_options: "--enablerepo=puppetlabs-product
--enablerepo=puppetlabs-deps",
apt_repo_options: "--something --something",
solaris_pkg_options: "...."
}
(not saying it should be named that way, just showing the idea)
With install_options that aren't indexed per provider we will have to use a
selector and repeat the entire package definition within each selector value,
which produces 2+ pages of text for each package. It's a net gain of zero in
readability or reusability in terms of the hacks we have in place today.
----------------------------------------
Feature #2247: enablerepo and disablerepo for yum type
https://projects.puppetlabs.com/issues/2247#change-98624
* 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.