Hey guys, I'm evaluating spring cloud config for a multi-tenant environment and my current idea is build something like this:
repo-template - keep the settings for each specific system with their default values
repo-values
- keep the set values for each specific service/tenant
My goal is bring the default value from the repo-template always when a specific value was not set on the repo-values by creating files like app_name-template.yml (on the template repo) + app_name-tenant_code.yml (on the repo-values) loading the profiles template and tenant_code together.
This approach works fine when I have the template file on the same repository of the repo-values but since we are planning use the git-flow on the template to promote new settings (and we dont want to do that with the repo-values since they are env specific in some cases) they should be separate.
When I configure two repositories with the same pattern just the first one is selected and then I have loaded just the template or just the values.
Is there a way to achieve what I'm trying to do or I need to think in another solution?
Thanks in advance
Comment From: GiacomoGranzotto
Using composite worked like a charm.