Add exception to existing yum repo configuration with puppet

I am using a puppet to manage the CentOS 5 group configuration. I would like to add some package exceptions to the repository configuration of the underlying CentOS system. Is there any way to do this with a puppet?

I am going to use the remo version of some packages and want to exclude base versions from yum. To enable remi, I defined a yumrepo resource.

+4
source share
1 answer

You can use the exclude parameter in yumrepo

 yumrepo { 'centos_base' : baseurl => "...", enabled => 1, priority => 1, exclude => "package-name", } 

You may also require a specific yumrepo when installing the package.

 package { "package-name" : ensure => installed, require => Yumrepo["RemiRepo"], } 
+4
source

All Articles