I thought the following would work and allow me to access a nodes variables from within a definition. It seems that classes and nodes, while similar, are different from the point of view of qualified variables.
Can someone confirm this? The obvious workaround is to define all variables within a class and include it but when the variables are node specific that seems a bit lame. define xen_guest($dom0) { $guest_ip = $name::$ip } node "a" { $ip = 10.10.10.1 } node "b" { xen_guest{ "a": dom0 => $name } } Joel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---