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
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
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
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