Ask Your Question

Revision history [back]

Conditional resources are not currently supported in Heat, although the idea has been discussed and may happen in the future.

One approach to solve your immediate problem would be to create separate provider templates for the Oracle and MSSql servers. Give the "database server" resource in your main template a made-up type (like MyDatabaseServer) and then use the environment to map that type to whichever of the two provider templates you want in each instance.

The other approach mentioned by @AndyHardwick, to allow the configuration management system on the server to make the decision, could also work well in many circumstances.