OK, this one I know! I had the same problem and while my solution is not "pretty" it does seem to work. :) It's just three easy steps (and you've already done the first one!)
1) Define your "global" variable in a node definition (i.e. $nodetype) 2) Create a mapping class to map those "global" variables to a class level variable class global { $NODE_TYPE = $nodetype } 3) include the global class in your node. node "www01", "www02", ... , "www10" inherits "base" { $nodetype = "wwwnode" include global include postfix::custom } Now you should be able to reference the $NODE_TYPE variable in any class that is included after the global class. Hey, I said it was ugly... Later... Richard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---