Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is it possible to create multiple openstack resources using same heat resource

What I am trying to achieve is a way to create several entities (in this case networks) using same resource and iterating through a list of parameters, like the example below.

    parameters:
      netName:
        type: comma_delimited_list
        label: netName
        default: "calea,diam,ss7,proxy"
        description: Network name
    resources:
      repeat:
        template:
          networks:
            type: OS::Neutron::Net
              properties:
                name:
                  list_join: ['_', [ 'int', <%name%>, 'net']]
        for_each:
          <%name%>: { get_param: netName }