On Thu, May 13, 2010 at 9:53 AM, Ken <k...@bob.sh> wrote: > Yes your write - you can only really do the equiv of: > > node foo { > $bar = "bleah" > include some_class > } > > No resources. So really your left using a swarm of global vars that > can passed down to the resources you have show above which are stored > in a class. So something like:
OMG. That's absolutely awful! > > node foo { > $software1_version = "t.981-1" > $software1_addons = "1.6-1" > include my_software > } > > Which works - but is less then ideal because your muddy you have a > muddy global namespace. > > However - one solution is being addressed in Rowlf with parameterized > classes I believe - which at least allow you to group vars as apposed > to using global vars. So something like: > > node foo { > include some_class { > param1 => "foo", > param2 => "bar", > } > } > > Will be possible using external nodes I believe. I seem to recall > Puppet Dashboard (the gui that provides external node support) also > being able to support this. > > ken. Back to parsing the node manifest until external nodes mature a bit. Thanks. -- 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.