|
| 1 | +heat_template_version: 2013-05-23 |
| 2 | + |
| 3 | +description: > |
| 4 | + Hello world HOT template that just defines a single server. |
| 5 | + Contains just base features to verify base HOT support. |
| 6 | +
|
| 7 | +parameters: |
| 8 | + key_name: |
| 9 | + type: string |
| 10 | + description: Name of an existing key pair to use for the server |
| 11 | + default: haruka_keypair |
| 12 | + flavor: |
| 13 | + type: string |
| 14 | + description: Flavor for the server to be created |
| 15 | + default: S-1 |
| 16 | + image: |
| 17 | + type: string |
| 18 | + description: Image ID or image name to use for the server |
| 19 | + default: 58fd966f-b055-4cd0-9012-cf6af7a4c32b |
| 20 | + az: |
| 21 | + type: string |
| 22 | + description: the availability zone |
| 23 | + default: jp-east-1a |
| 24 | + network: |
| 25 | + type: string |
| 26 | + description: network uuid |
| 27 | + default: c3b7914e-8320-4c85-89fa-dac343c7d321 |
| 28 | + vm_name: |
| 29 | + type: string |
| 30 | + description: name of vm |
| 31 | + default: mo-stack-machine0905 |
| 32 | + sg_name: |
| 33 | + type: string |
| 34 | + description: security group |
| 35 | + default: 2e8dfe2d-2531-498e-8743-e97f5a9a7c11 |
| 36 | + |
| 37 | +resources: |
| 38 | + sys-vol: |
| 39 | + type: OS::Cinder::Volume |
| 40 | + properties: |
| 41 | + name: "" |
| 42 | + size: 30 |
| 43 | + volume_type: "M1" |
| 44 | + availability_zone: { get_param: az } |
| 45 | + image: { get_param: image } |
| 46 | + server: |
| 47 | + type: OS::Nova::Server |
| 48 | + properties: |
| 49 | + key_name: { get_param: key_name } |
| 50 | + flavor: { get_param: flavor } |
| 51 | + image: { get_param: image } |
| 52 | + networks: ["uuid": {get_param: network} ] |
| 53 | + name: { get_param: vm_name } |
| 54 | + security_groups: [{ get_param: sg_name }] |
| 55 | + block_device_mapping: [{"volume_size": "80", "volume_id": {get_resource: sys-vol}, "delete_on_termination": True, "device_name": "/dev/vda"}] |
| 56 | + |
| 57 | +outputs: |
| 58 | + server_networks: |
| 59 | + description: The networks of the deployed server |
| 60 | + value: { get_attr: [server, networks] } |
0 commit comments