openstack-virtual-baremetal/templates/virtual-baremetal-servers.yaml
Steve Baker 3233c1cbb3 Types to create all networks for network-isolation
The created public_net isn't used for anything at the moment
so I've assumed that it maps to the overcloud external network.
2016-04-07 13:06:03 +12:00

53 lines
995 B
YAML

heat_template_version: 2014-10-16
parameters:
baremetal_flavor:
type: string
baremetal_image:
type: string
key_name:
type: string
baremetal_prefix:
type: string
provision_net:
type: string
public_net:
type: string
suffix:
type: string
resources:
baremetal_ports:
type: OS::OVB::BaremetalPorts
properties:
suffix: {get_param: suffix}
baremetal_prefix: {get_param: baremetal_prefix}
provision_net: {get_param: provision_net}
public_net: {get_param: public_net}
baremetal_server:
type: OS::Nova::Server
properties:
flavor: {get_param: baremetal_flavor}
image: {get_param: baremetal_image}
config_drive: false
key_name: {get_param: key_name}
networks: {get_attr: [baremetal_ports, ports]}
name:
list_join:
- ''
- - {get_param: baremetal_prefix}
- {get_param: suffix}
outputs:
bmc_nic:
value: {port: {get_resource: bmc_port}}