r...@devco.net ("R.I.Pienaar") writes: > ----- Original Message ----- > > john.bollin...@stjude.org (jcbollinger) writes: > > > > Perhaps. To some extend my non-parameterised classes are _very_ similar > > in many ways except for various parameters (creation of logical volumes > > and filesystems, version of mysql to use, creation of certain cron jobs > > for importing informtation into a configuration database, and other crons > > for doing standard jobs, etc....) Most of the "completely common" stuff > > has been taken out. However, using extlookup() doesn't really work for > > me "right now" for a simple reason I haven't yet mentioned. I'd further > > like to have a lookup_by_key() function [let's say similar to the > > extlookup() > > one provided now] but also a lookup_by_regexp() function where I can match > > groups of boxes, in my case mainly based on regexps of their hostnames > > rather than on specific $hostname, or $domain, etc.... Without that > > I need to add more entries to match by lots of hostnames, which > > doesn't work. > > I think you're really trying to just avoid thinking in the puppet way instead > trying to force some previous ideas on how things should work on it rather > than figure out how it works. > > For example, you could just define a fact on your machines that indicate what > role they have - perhaps based on your regex hostnames - and then use that in > extlookup to select csv file to use. That would achieve your goal and it > would > be the puppet way of solving it.
Currently I build nodes.pp from an external source and that provides the node with it's basic class (and hence role). So that's not needed. One of the irritating things I see when we discuss puppet is the inevitable "I can't describe my complete problem" as it's [confidential] my site specific, so you can't have a full understanding of what I'm doing or why I'm doing it wrong, or provide me a precise, clear explanation of how better to solve my original problem. We talk in generics and that means we never fully understand each other. I guess the reasons are obvious but it's probably frustrating to us all. Nevertheless this thread I started has helped me clarify several things so I appreciate the time you've spent discussing them with me. Simon -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.