On Wednesday, September 11, 2013 5:50:18 PM UTC-5, Guy Knights wrote:
>
> I'm not sure at all what's going on here, but I've spent a lot of time 
> reading over the puppet hiera docs and setting everything up, but when I 
> run puppet agent it just seems to ignore the hiera setup completely.
>
> Both the puppet master and agent nodes have exactly the same versions of 
> puppet and hiera (installed via the official puppet APT repository). I've 
> laid out my hiera files like this: /etc/hiera/hiera.yaml, 
> /etc/hiera/data/%{::environment}, have symlinked both 
> /etc/puppet/hiera.yaml and /etc/hiera.yaml to /etc/hiera/hiera.yaml, and 
> have tested the hiera setup using the command line utility. All seems good.
>
>

Puppet uses hiera only during catalog compilation, so agent nodes do not 
normally require it.  Correspondingly, only hiera data residing on the 
master contribute to catalogs compiled by the master -- is that your 
problem?

 

> However, when I run puppet on the agent node it doesn't install any of the 
> classes I've outlined in my hierarchy. I tried running the puppet master in 
> debug mode to see if it was having problems locating the hiera config but 
> it seems to locate it ok, eg. "Debug: /File[/etc/puppet/hiera.yaml]: 
> Autorequiring File[/etc/puppet]". At least, it doesn't appear to display 
> any errors related to hiera.
>
> I'm really at a loss here. Any ideas?
>
>

Are you anywhere instructing Puppet to include the classes listed in your 
hiera data in the catalog?

You haven't really given us much to work with.  Generally speaking, Puppet 
and hiera work.  If they are not working for you, then the problem likely 
resides in the configuration, manifests, or data that you are feeding 
them.  If you present a simple example that is failing for you, then we can 
probably help you sort it out.


John

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to