Here's a breadcrumb for someone who runs into this themselves.
I ran into an issue where I had the mysql-percona rpm's in a yum repository,
so yum was selecting MySQL-percona-devel when told to install mysql-devel.
I needed to pass the -x parameter to yum to get around it.
I created a module to extend yum and give me the option to pass custom
parameters:
#
/etc/puppet/modules/package_plus_plugins/puppet/provider/package/yum_plus.rb
Puppet::Type.type(:package).provide :yum_plus, :parent => :yum, :source =>
:rpm do
desc "Support via ``yum``."
commands :yum_plus => "yum"
def yum(*args)
yum_plus(*args + @resource[:vendor].split(" "))
end
end
# then, in my manifest:
package { ["mysql", "mysql-devel"]: ensure => present, provider => yum_plus,
vendor => "-x *percona*" }
Criticisms / peer review welcome.
Tim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---