outputs from nested template
I am creating volumes using nested ...I want to print the volume id(UUID) for each volume I create. I tried different ways nothing seems to work i am lost...
base_template
parameters:
vfl_prb_volume_name:
type: comma_delimited_list
description: VolumeName for vfl probe instances
vfl_prb_vol_size:
type: comma_delimited_list
label: volume_size
description: Volumesize for probes
resources:
vfl_prb_3_vol_0:
type: nested_vfl_prb_volume.yaml
properties:
vfl_prb_volume_name: { get_param: [vfl_prb_volume_name, 0] }
vfl_prb_vol_size: { get_param: [vfl_prb_vol_size, 0] }
vfl_prb_4_vol_0:
type: nested_vfl_prb_volume.yaml
properties:
vfl_prb_volume_name: { get_param: [vfl_prb_volume_name, 1] }
vfl_prb_vol_size: { get_param: [vfl_prb_vol_size, 1] }
nested template
parameters:
vfl_prb_volume_name:
type: string
constraints:
- length: { min: 3, max: 25 }
- allowed_pattern: "vfl_prb_volume_name_[0-9]*"
description: the volume names for vfl probe instances
vfl_prb_vol_size:
type: number
label: volume_size
constraints:
- range: { min: 1, max: 1000000 }
description: Volumesize defined in gigabytes
description: Volume size for probes
resources:
vfl_prb_volume_create:
type: OS::Cinder::Volume
properties:
name: { get_param: vfl_prb_volume_name }
size: { get_param: vfl_prb_vol_size }
Where do I need to define the outputs at base or nested?how do I define so that I can get ssomething like below
vfl_prb_3_vol_0_id: UUID
vfl_prb_4_vol_0_id: UUID
I tried something like below didn't work
outputs:
volumes_ids:
description: output the volume_ids all volumes created
value:
vfl_prb_3_vol_0_id: { get_resource: vfl_prb_3_vol_0 }