I have my hiera data in a separate repository with the same branches
as my environment repositories.
I have r10k setup to check out my hiera repo and two environment trees.
My first idea was to use a submodule but I am not sure r10k would
handle that properly.
You could use a separate module for the global hiera settings and get
r10k to manage that as well.

It wouldn't be too tricky to build a hiera tree that does lookups into
your two hiera trees as long as they share a parent directory.

I am also about to publish my puppet management module to puppet forge
which might give you some inspiration.
It can manage an r10k setup with multiple repositories.
The docs are a bit sparse st the moment but it may help.
https://github.com/abstractitptyltd/abstractit-puppet

It would also be pretty easy to change my module to check out multiple
hiera trees.

Hope that helps.

Pete.

On 21 June 2014 03:00, Wolf Noble <w...@wolfspyre.com> wrote:
> Hi Guys,
>
>
> I have a few questions about 3.6 directory environments, which we're looking
> to adopt.
>
> Currently the most pressing surrounds the integration of r10k and hiera…
>
> I believe I want to store hieradata inside the r10k repos, so that each r10k
> repo (I'm planning on using these to segregate different internal product
> stacks so that product owners can put sensitive data in their own hiera
> hierarchy, without the members of other products having access to the
> sensitive data)
>
> It seems that if I want some tiers of my hierarchy to be accessible to all,
> the only path open to me is to have a hierarchy inside each r10k repo, and
> symlink the branches of that hierarchy to relevant locations inside the
> global hierarchy.
>
> While I suspect this _will work_ it doesn't quite sound like the most
> elegant solution.
>
> Does anyone have any input on a more elegant way that they'd be willing to
> share?
>
> --
> 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/CAC1UU3eAPaMPsM3XF9kdwwXb%2BD5cH8mG2ZxHKCakv4rS0NCj-w%40mail.gmail.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/CAJ8DPF6EVc1D2JMFWPhQ6Jzq5L76-R3iQk6gPVAX9yEdU8MxEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to