Multiple independent control repos
I'm using puppet with git repo, managed by r10k. Currently my puppet master is managing my infrastructure servers, which are not related to out company's business servers. Our business servers have nothing related to infrastructure servers - they should be configured differently. And what is more, in the future we are going to share our business puppet configuration with our partners, so they could use it locally. We don't want to share infrastructure puppet configuration, because it has nothing in common and shoul not be shared. So we have to separate puppet configurations: infrastrucrure and business. We got our central puppet server. What I would like to do is to share those configurations as separate repositories on single puppet master server. Gary Larizza wrote good article about application tiers - On R10k and 'Environments'. But he suggests to use single repository which will separate tiers by hiera. I need to have separate repositories, so we can share one of them, without not sharing the other.
So, here is how I see it: in puppet.conf there is setting for dynamic envitonments:
environmentpath = $confdir/environments
I would configure it like this:
environmentpath = $confdir/$tier/environments. Somewhere on agent I would configure it's
tier - may be in puppet.conf. Next, I would make folders with my git repos for insfrastructure and business configurations:
If that would be possible it would be great!
But unfortunately I failed to implement this scheme: puppet master throws this error:
Error converting value for param 'environmentpath': Could not find value for $tier (Puppet::Settings::InterpolationError). I tried to set
tier like hiera (just in case) and in puppet.conf - no luck.
So here is my questions: is it ever possible to implement aformentions solution? If not, then is it possible to have multiple independent control repos so puppet master would use one or another?
Thanks in advance.