Puppet provides a Yumrepo resource type for managing Yum repository definitions. It has an 'enabled' property, which you can set false to disable repos you want to keep but not use. This has the advantage that you no longer need to disable these repos from the command line, either, but the disadvantage that it affects only the repos you in fact manage.
If you are concerned that unmanaged repos may be be added to your systems, and you are running at least Puppet 3.5, then you should be able to use the Resources metaresource to purge unmanaged repos.
On Monday, July 6, 2015 at 7:44:17 AM UTC-7, jcbollinger wrote:
If you are concerned that unmanaged repos may be be added to your systems, and you are running at least Puppet 3.5, then you should be able to use the Resources metaresource to purge unmanaged repos.
I'm struggling with translating that last statement into English I can understand.....have an example I could try ?
resources { 'purge unmanaged Yum repos':
name => 'yumrepo',
purge => true
}