I've been struggling with puppet variable scope all day, well, for several months actually.
I think I have pretty simple requirements. For any given node, I want to be able to set a series of variables and include a set of classes, based on three different aspects of a node, being physical location, operating system, and function. If I try and do this with classes, I find that variables set in a class included from a node, are not visible to other classes included from that node. node 'node1.fr.xxx.com' { include facility::sjc include ldap::client } In this example, variables defined in facility::sjc are not visible in ldap::client (in this case, it would be the IP address of the local LDAP server). Another approach is to do everything with node inheritance, but in order to model these three functions, you end up with nodes with names like sjcDellBootServer or nycVmwareBootServer, which is just plain stupid. So... what am I missing here, and why is such a simple thing so complicated in puppet? I'm not even sure if this email is lucid. I am really annoyed and frustrated as hell. 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 at http://groups.google.com/group/puppet-users?hl=en.