The good news:

Without /etc/puppet/hiera.yaml & Without <module>/data/hiera.yaml = OK!
Without /etc/puppet/hiera.yaml but with empty <module>/data/hiera.yaml = OK!
Without /etc/puppet/hiera.yaml but with <module>/data/hiera.yaml with a 
hierarchy = OK!

With empty /etc/puppet/hiera.yaml & Without <module>/data/hiera.yaml = OK!
With /etc/puppet/hiera.yaml with a hierarch & Without <module>/data/hiera.yaml 
= OK!
With /etc/puppet/hiera.yaml with a hierarch & with empty 
<module>/data/hiera.yaml = OK!
With /etc/puppet/hiera.yaml with a hierarch & with <module>/data/hiera.yaml 
with a hierarchy = OK!

Lookups via hiera() in a define also seem to work well! 


Comment:

The default file looked up in the in-module data backend is 'default.yaml', not 
'common.yaml' and 
that is different from the yaml backend so it is somewhat confusing. 
It is also not what was 'agreed'  in this thread.

All this is based on a simple test with a module with one class and one define 
so it is not very in-depth 
but the results are clear and as expected....

Thank you Volcane ! We're getting there. :-)

Regards,

Stefan - Zipkid - Goethals.



On 12 Dec 2012, at 17:05, R.I.Pienaar <r...@devco.net> wrote:

> 
> 
> ----- Original Message -----
>> From: "Jakov Sosic" <jso...@srce.hr>
>> To: puppet-users@googlegroups.com
>> Sent: Wednesday, December 5, 2012 11:15:57 PM
>> Subject: Re: [Puppet Users] Re: in-module data with hiera
>> 
>> On 12/05/2012 09:45 PM, Stefan Goethals wrote:
>>> Not having any problem with osfamily i agree with John.
>>> A default to 'common' would suffice i believe.
>> 
>> Agree, common is more than enough as default.
> 
> I've updated my pull request[1] with this feedback and the bugs
> Zipkid reported, any testers and more feedback welcome
> 
> [1] https://github.com/puppetlabs/puppet/pull/1217
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to