blob: 1c5aa960ac5d72248c4d6e597ad2d6ef82da1f72 [file] [log] [blame]
Alex17e4a592021-07-13 15:59:33 -05001heat_template_version: 2014-10-16
2description: A simple Ubuntu server booted from volume.
3
4parameters:
5 metadata:
6 type: json
7
8resources:
9 server:
10 type: OS::Nova::Server
11 properties:
12 block_device_mapping:
13 - device_name: vda
14 delete_on_termination: true
15 volume_id: { get_resource: volume }
16 flavor: cvp.medium
17 networks:
18 - network: cvp.net.1
19 metadata: {get_param: metadata}
20 user_data_format: RAW
21 user_data: |
22 #!/bin/sh
23 while [ 1 ] ; do echo $((13**99)) 1>/dev/null 2>&1; done
24
25 volume:
26 type: OS::Cinder::Volume
27 properties:
28 image: 'cvp.ubuntu.1604'
29 size: 20