---
heat_template_version: 2013-05-23

parameters:
  public_net_id:
    type: string
    description: uuid of a network to use for floating ip addresses

  demo_net_id:
    type: string
    description: uuid of a subnet on the fixed network to use for creating ports

  demo_subnet_id:
    type: string
    description: uuid of a subnet on the fixed network to use for creating ports

  vm_count:
    type: string
    description: Number of VMs to launch

  image_flavor:
    type: string
    description: Image flavor to use when launching VMs

resources:
  steak:
    type: OS::Heat::ResourceGroup
    properties:
      count:
        get_param: vm_count
      resource_def:
        type: steak.yaml
        properties:
          image_flavor: {get_param: image_flavor}
          public_net_id: {get_param: public_net_id}
          demo_net_id: {get_param: demo_net_id}
          demo_subnet_id: {get_param: demo_subnet_id}

outputs:
  eth0:
    value: {get_attr: [steak, eth0]}

  float:
    value: {get_attr: [steak, float]}