I think my problem was I was trying to set the role variable under a 
"parameters:" clause in my group yaml file... errrr
I'm also trying your method, Pete, but I'm hitting a snag. 

I have certname.yaml file that contains
---
role: modeler

and a file modeler.yaml that contains
---
classes:
 - my_class

But I am getting an error saying 
Error: Could not find class modeler for ..... 

If I set the certname.yaml to 
---
parameters:
  role: modeler

I get 
Error: Could not find data item role in any Hiera data file and no default 
supplied at .....

Am I doing something wrong?


On Sunday, July 27, 2014 4:46:45 PM UTC+10, Pete wrote:
>
>
> On 27 Jul 2014 16:42, "Pete Brown" <[email protected] <javascript:>> 
> wrote:
> >
> > I have taken to using hiera as my ENC these days.
> >
> > My site.pp is basically
> > hiera_Include(role)
> > And each nide as a role variable set in my certname.yaml file.
>
> Dammit.
> Each node has a role variable.
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c4f24ba9-ecdf-4707-b24e-c61e28473c99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to