Parameterize Rally scenarios
[functest.git] / testcases / VIM / OpenStack / CI / rally_cert / scenario / templates / server_with_volume.yaml.template
1 heat_template_version: 2013-05-23
2
3 parameters:
4   # set all correct defaults for parameters before launch test
5   image:
6     type: string
7     default: cirros-0.3.4-x86_64-uec
8   flavor:
9     type: string
10     default: m1.tiny
11   availability_zone:
12     type: string
13     description: The Availability Zone to launch the instance.
14     default: nova
15   volume_size:
16     type: number
17     description: Size of the volume to be created.
18     default: 1
19     constraints:
20       - range: { min: 1, max: 1024 }
21         description: must be between 1 and 1024 Gb.
22
23 resources:
24   server:
25     type: OS::Nova::Server
26     properties:
27       image: {get_param: image}
28       flavor: {get_param: flavor}
29   cinder_volume:
30     type: OS::Cinder::Volume
31     properties:
32       size: { get_param: volume_size }
33       availability_zone: { get_param: availability_zone }
34   volume_attachment:
35     type: OS::Cinder::VolumeAttachment
36     properties:
37       volume_id: { get_resource: cinder_volume }
38       instance_uuid: { get_resource: server}
39       mountpoint: /dev/vdc