[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-27 Thread jcbollinger
On Friday, August 23, 2013 11:33:14 AM UTC-5, JeremyCampbell wrote: Eric, thanks. I've spent most of today trying to get this to work but I have to submit again. I've read the linked docs on variables multiple times. As I understand it, with Puppet you cannot assign top-level variables

[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-25 Thread Mike Delaney
If you're assigning $role inside the role::nameserver class, then its scope is limited to just role::nameserver (and any classes that inherit from role::nameserver)[1]. So, hiera lookups from inside role::nameserver will see that level of your hierarchy, but it will be invisible almost

[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-23 Thread JeremyCampbell
Eric, thanks. I've spent most of today trying to get this to work but I have to submit again. I've read the linked docs on variables multiple times. As I understand it, with Puppet you cannot assign top-level variables i.e. starting with $::, these are reserved for facts and other built in

[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-22 Thread badgerious
Take a look at the last paragraph here: http://docs.puppetlabs.com/puppet/3/reference/lang_variables.html#assignment $role = 'nameserver' assigns a variable within the 'role::nameserver' namespace (allowed), while $::role = 'nameserver' assigns a top level variable (not allowed). Eric On