Alex | 17e4a59 | 2021-07-13 15:59:33 -0500 | [diff] [blame^] | 1 | heat_template_version: 2014-10-16 |
| 2 | description: A simple Ubuntu server booted from volume. |
| 3 | |
| 4 | parameters: |
| 5 | metadata: |
| 6 | type: json |
| 7 | |
| 8 | resources: |
| 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 |