segmenting hiera data in same environment
I pull in hiera data from a repo where each branch correlates to an environment. The data is actually pulled via r10k. What I am trying to figure out is how I can, in a single environment, have multiple git repos so that the hiera data generated by our dba's is not in the same repo as the hiera data generated by our web developers. Basically, I want a hierarchy like depicted below where sysadmins would manage the top level files and the contents of the top level node directory and each named group would manage the files and folders in their directory. Ideally, the named groups (appadmins, dba, webteam) would each be an independent git repository.
├── global.yaml | ├── node │ ├── host1.yaml │ ├── host2.yaml │ ├── host3.yaml │ └── host4.yaml | ├── group | ├── appadmins | │ ├── global.yaml | │ ├── node | │ | ├── host1.yaml | │ | └── host2.yaml | │ └── default.yaml | | | ├── dba | │ ├── global.yaml | │ ├── node | │ | ├── host1.yaml | │ | └── host3.yaml | │ └── default.yaml | | | └── webteam │ ├── global.yaml │ ├── node │ | ├── host3.yaml │ | └── host4.yaml │ └── default.yaml | └── default.yaml
The end result, from a repo perspective, might be something like this:
base repo └── group folder in base repo | ├── appadmins git repo | ├── dba git repo | └── webteam git repo
Just to reiterate, I am hoping to do this via r10k so that this structure represents a single environment. That environment would correspond to a branch name such as