Configuration of secondary variant are not applied
If you have a role with multiple variants, the configuration of all but the first variant are not accounted for in the final model.
Take this variants definition in a role tomcat-services (from the examples)
and this environment definition:
and you'll get this in the model:
it works however if you switch the order of the variants to be [ importer , services ].
I would expect the configuration values of all variants to be merged into the final configuration in the order of the variant declaration in the environment.
It works fine for my usecase with the latest snapshot, thank you very much.
should be solved in next CONGA version
please give it a try with 1.11.1-SNAPSHOT
the problem is that when reading the models the whole configuration is first inherited down to all variants.
that means the variants are interpreted as if they where defined like this:
because /path/to/tomcat is defined globally in the role tomcat-services. a workaround would be to define the path not globally, but only in the variants.
but that's not very intuitive, and on first sight i would expected it should work as well as you have described it. let's see if we can make change it in that way without breaking anything.