Nested stacks and parameter names and defaults
Hi,
I have declared similar 2 nested resources in one single stack as given below:
obj1:
type: OS::Nova::MyServer
obj2:
type: OS::Nova::MyServer
I have also declared a default parameter in a .env file, which is used while creating the above heat stack:
parameter_defaults:
stack_name: stack1
which is used internally within MyServer, which is a nested resource, many levels deep. Now, I want to be able to pass a different stack_name for each of obj1 and obj2, which would get passed to the very last level, without changing all the resource levels to include "stack_name" as a parameter input. So, in short, I want it to be a default parameter, but defined in the top level heat yaml file, not in the env file, so that I can give a different name to each object, and not pass it at every level - is there a way to do that?
Another related question: when I use OS::stack_name, internally within the nested stacks, but it changes the stack_name which was given in heat stack-create to the name+random_string -- is there a way to retain the original heat stack name in the internal nested templates?
Thanks
Anjali