PS. When I put the variables for testing in the class, the variable is working fine. -----Original Message----- From: Marek Dohojda Sent: Saturday, December 10, 2011 9:51 PM To: Puppet Users Subject: Variables not inheriting I am having a weird problem on a new (rhel6) puppet server. I can not seem to be able to define custom variable. Neither template nor class is able to use this variable. Puppet version: 2.7.9 server: RHEL 6.1 here is snippet of what I am doing: node ''something'' inherits env_prod { $mode = "PROD" } then I use the following in a class: class hosts { file {"hosts": path => "/etc/hosts", owner => "root", group => "root", mode => 644, content => template("env/${environment}/${mode}/etc/hosts.erb"), } } what is weird is that this use to work perfectly when I did it on RHEL5.5 with puppet 2.6. any ideas what I am doing wrong? Thank you very much -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.