I totally cheated to achieve module-local data as well as site-local data.

I copied the yaml.rb hiera backend and renamed it siteyaml.rb, then
made a few modifications in the .rb file to reflect the name change.

The result is that I can add an additional back-end with a second datadir.

:yaml:
        :datadir:
/etc/puppet/environments/%{environment}/modules/%{module_name}/hieradata

:siteyaml:
        :datadir: /etc/puppet/environments/%{environment}/hieradata

Ugly, ugly, ugly.  I am pretty sure I got the idea from Luke Bignum,
based on this discussion and bug:

https://groups.google.com/d/topic/puppet-users/Gj32AXNgJ0w/discussion
http://projects.puppetlabs.com/issues/13954

That probably doesn't help, but it is how I do it.

On Wed, Feb 6, 2013 at 8:53 AM, Schofield <dbschofi...@gmail.com> wrote:
>> :yaml:
>>   :datadir: /etc/puppet/environments/%{environment}/data
>>
>> So you in essence have a different hierarchy per environment.
>
>
> I really need a hierarchy per module instead of a site/environment
> hierarchy.   Looks like R.I.Pienaar is working on this.
> https://github.com/puppetlabs/puppet/pull/1217  Until this gets merged are
> there any tricks to emulate this behavior?
>
>
>
>
> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
Chad M. Huneycutt

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to