On 29 July 2014 17:24, Grant Street <[email protected]> wrote:
> 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

Sorry I composed that email on my phone.
I meant certname to be the variable $::certname.
Which is usually the $::fqdn of your node.

So if the $::fqdn is www.example.com the file should be named
www.example.com.yaml


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

-- 
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/CAJ8DPF5DSaktixVxS9L3RnJMvMwDJP_deVL%3DGt2Ta1d6-uo4cg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to