Matt Wallace <li...@truthisfreedom.org.uk> writes: > On Wed, 2010-06-02 at 15:16 -0700, Patrick wrote: > >> Sorry, but you might have lost me. Are you saying that you're having >> problems because when you define the repository in two places it throws an >> error? > > Not quite! :) > > I want to define all my repos in one module and then include the repos > based upon the node class. > > For example: > > ================================= > > class webserver { > yumrepo{["atrpms-stable","atrpms-testing","epel","centos-base"]}
include repo::atrpms-stable include repo::epel [...] [...] > and then in my repos module: > ================================= > class repo::atrpms-stable { > yumrepo{ atrpms-stable: } [...] > So I only get the minimal repos needed for each node class. ...but from experience I wouldn't recommend doing this. You are almost certainly going to be better off having the same set of repositories on every server, and using some other mechanism to control which packages or updates are applied to your systems. Regards, Daniel -- ✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.