----- Original Message -----
> From: [email protected]
> To: "puppet-users" <[email protected]>
> Sent: Monday, 18 April, 2016 13:45:58
> Subject: Re: [Puppet Users] How to Read New Files Dynamically with Hiera?

> I'm using git, but still, a single file is too messy. I will take a look at
> Jerakia.
> 

there is a HOCON backend for hiera https://github.com/cprice404/hiera-hocon
and HOCON supports including files into others, not sure if this will let
you do what you want but it's an option for staying with Hiera

> On Friday, April 15, 2016 at 3:03:39 PM UTC+3, Craig Dunn wrote:
>>
>>
>>
>> On Thu, Apr 14, 2016 at 4:34 PM, <[email protected] <javascript:>> wrote:
>>
>>>  Hi,
>>> We need to manage many keys in Hiera. Since many people should be able to
>>> edit the keys and in order to avoid a complete mess I was thinking to work
>>> with many different files. The problem is that I don't know how to make
>>> Hiera read from new files. I don't want to add each file to the hierarchy
>>> explicitly.
>>> Optimally I would add something like that
>>> /etc/puppetlabs/code/enironments/%{::environment}/hieradata/delegated/*
>>>
>>> and Hiera will just read from all files that are under the
>>> delegated
>>>
>>
>>
>> You could use Jerakia to do this (it can also be configured as a regular
>> hiera backend).  It supports fragments so if your hierarchy contains
>> "/delegated" then the presence of a directory called "delegated.d" will
>> automatically get checked and if present any files within it are
>> concatenated together along with delegated.yaml and returned as one YAML
>> document.....  see the "Fragments" documentation in
>> http://jerakia.io/datasources/file/
>>
>>
>>
>>
> 
> --
> 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/2e420308-dc27-403e-81af-cd1ef23649ee%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/1480139089.213309.1460981952797.JavaMail.zimbra%40devco.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to