bd717859ac
The current template assumes that neutron is used, this patch updates it to work with both nova-net and neutron. Change-Id: I98a1b9956be62e07f0b931d956a8f546248addfe Closes-Bug: #1308359
27 lines
571 B
YAML
27 lines
571 B
YAML
heat_template_version: 2013-05-23
|
|
|
|
description: Test Template
|
|
|
|
parameters:
|
|
ImageID:
|
|
type: string
|
|
description: Image use to boot a server
|
|
NetID:
|
|
type: string
|
|
description: Network ID for the server
|
|
|
|
resources:
|
|
server1:
|
|
type: OS::Nova::Server
|
|
properties:
|
|
name: "Test server"
|
|
image: { get_param: ImageID }
|
|
flavor: "m1.tiny"
|
|
networks:
|
|
- network: { get_param: NetID }
|
|
|
|
outputs:
|
|
server1_private_ip:
|
|
description: IP address of the server in the private network
|
|
value: { get_attr: [ server1, first_address ] }
|