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:

and not:

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.


Martin Wehner
June 25, 2019, 12:38 PM

It works fine for my usecase with the latest snapshot, thank you very much.

Stefan Seifert
June 24, 2019, 12:15 PM

should be solved in next CONGA version

please give it a try with 1.11.1-SNAPSHOT

Stefan Seifert
June 24, 2019, 10:44 AM

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.





Martin Wehner




Fix versions