On Mon, Jun 01, 2015 at 08:12:33PM +0000, Robert Davidson wrote:
> Note: We're still running puppet 3.6.2 and hiera 1.3.
> 
> What I would like to do is to have hiera load all yaml files inside a 
> directory - ie, have all the profile specific data split up into independent 
> files sitting inside a 'profile' directory, without having to tell hiera to 
> load them individually. This would purely be for ease of working with data 
> for each profile module, rather than having all data changes committed 
> against a single profile.yaml file. 

I have never heard of such a thing, but you could probably scribble together 
your own hiera backend to do this. Or copy something from the net:

https://ask.puppetlabs.com/question/1149/using-wildcards-in-hierayaml/
https://ask.puppetlabs.com/question/11151/merging-multiple-files-with-hiera/

(I searched for (no quotes) "hiera multiple files". If you read those links 
there are always caveats.)

> Is that a thing that can be done? I don't see a way to do it, but it seems so 
> staggeringly obvious a thing to want to do that I'm sure I'm missing 
> something.

It sounds like more pain than it's worth, figuring out which hiera key to use 
in two dimensions of lookup instead of one. 

> 
> -- 
> Robert Davidson
> 
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/1EE73329D6577F44A3C2FB0F7D4ACAE98CEE3058%40MBX-02.WIN.NOMINUM.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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20150601204754.GA29623%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to