There may be a more Puppety way of doing this, but your disable/enable
method can be done with Puppet too. You can pass those options in the
install_options for your Package.

https://docs.puppetlabs.com/references/latest/type.html#package-attribute-install_options

Christopher Peterson

On 07/02/2015 11:52 AM, Vince Skahan wrote:
> 
> We've set up local mirrors of a number of upstream repos, and want to
> point our puppet-managed boxes at the local mirrors only.
> 
> Assuming we named our mirror reposlocal-mirror-whatever, if I was using
> yum on the commandline, I could do it on the fly by disabling all repos
> and then enabling the repo(s) that I wanted visible for that yum
> transaction ala:
>     yum --disablerepo=* --enablerepo=local-mirror* install foo
> 
> Is there a clean way to do this in puppet ?
> 
> Alternately, I guess I could just remove all the files (other than ours)
> in /etc/yum.repos.d but that seems a little kludgey to me and I'd need
> to make sure that subsequent yum updates didn't put them back on me.
> 
> Any ideas ?
> 
> 
> -- 
> 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
> <mailto:puppet-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/19ddcb3e-8b2a-4540-9531-4843ae3fcf91%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/19ddcb3e-8b2a-4540-9531-4843ae3fcf91%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/5595781F.2070403%40ias.edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to