Douglas - what you are trying to do isn't supported in say 0.25.x without compromising. I think the discussion regarding you using external nodes is a waste of time - I'd rather divert the conversation instead talk about what you might want in an ideal world.
So it sounds like from that other thread your model is complex. I can see also why you might want resources. I think for external nodes & classes to suit your case Douglas we'll need hash support in external nodes (and puppet). See here for some discussions regarding both: http://projects.puppetlabs.com/projects/puppet/wiki/Development_Language_Evolution Now to try and model your requirements using: parameterized classes, hashes, external nodes - in puppet dsl you probably would want something like this: class apache { ... } node foo { include apache < # And this is a hash in a class - not a resource $instances = { "inst-1" => { "version" => "2", "path" => "$basepath/inst-1", "mods" => ["mod_cgi"], ... }, "inst-2" => { ... similar data here ... }, } > } Am I right? So I'm not even sure this is supported in Rowlf with external nodes. Not only that - how would one implement the code to deal with the hash in the 'apache' class in Puppet DSL? We don't have iteration so it does become difficult. So it seems to me a complex problem that needs solutions in multiple places if we persist with classes. It does however pose the question - has anyone explored the problem of adding resources to external nodes? Is there a model problem here? The model above maps perfectly into resources in DSL ... so why try to shoe horn classes to achieve the same result. ken. On May 21, 6:16 am, Douglas Garstang <doug.garst...@gmail.com> wrote: > On Thu, May 20, 2010 at 10:06 PM, Paul Lathrop <p...@tertiusfamily.net> wrote: > > If you don't see a use, don't use the feature. However, when you have > > an issue and people suggest external nodes is the answer, you might > > consider listening. > > Paul, I initially asked about a way to parse nodes files such that I > could update them programatically. Various people suggested external > nodes. And, here we are. > > Thanks for your reply. I am listening, but I missed where you > suggested a solution to my question. Therefore, I will pose it again. > How do I set parameters in external nodes such that I don't have to > pass a plethora of qualified global variables to my modules? > > Doug. > > -- > 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 > athttp://groups.google.com/group/puppet-users?hl=en. -- 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.