Hello Tim,
You can specify a repo like this:
[mysql-percona]
...
enabled=1
priority=20
exclude=mysql-devel,...
http://wiki.centos.org/PackageManagement/Yum/ProtectBase
http://wiki.centos.org/PackageManagement/Yum/Priorities
I have the CentOS repos mostly set at priority 1 and then EPEL at a
lower value. If you set the Red Hat/CentOS repo priority to 1 and then
rest to a lower value, I think packages of the same name will never
get installed from lower priority repos. You may just want exclude
instead.
The yumrepo native type also lets you specify priorty or exclusions:
yumrepo { 'percona':
baseurl => "...",
enabled => 1,
exclude => "mysql-devel,...",
priority => ...,
...
}
I just started using immerda's great yum module:
https://git.puppet.immerda.ch/
Manging yum repos in puppet let's you then specify package repo
requirements:
package{ 'package': ensure => enabled, require => Yumrepo['epel'] }
Gary
On Jan 1, 1:11 am, "Tim Harper" <
timchar...@gmail.com> wrote:
> Hi Gary,
> That sounds fantastic. I was looking for such a thing - where can I find
> it?
>
> Tim
>