Hello Tim,

Yum also supports specifying priorities and exclusions per repo. :)
The puppet yum repo type also lets you configure these settings.

Gary

On Dec 31, 3:26 am, "Tim Harper" <timchar...@gmail.com> wrote:
> 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 puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to