On Monday, July 6, 2015 at 7:44:17 AM UTC-7, jcbollinger wrote:

> 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.
>>
>>
I worked around it for the moment by using install_options ala:

  package { 'xyz':
    ensure => installed,
    install_options => [ { "--disablerepo" => "*" }, { "--enablerepo"  => 
"localmirror-*" }, ],
  }

But yes I guess just disabling the upstream repos is the right way to go, 
as their names are well known.
 

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 ?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a9a8c5d9-af40-4ad3-840e-335e571377de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to