[Openstack] Use HOT to specify the hosts to run the VMs
Cavalcante, Franciraldo X
C-Franciraldo.Cavalcante at charter.com
Tue Jul 19 14:46:08 UTC 2016
Hi David,
Here's an example that includes the availability zone. You can fill the av_zone_name with the same that you fill on Nova.
Thanks,
\Franza
...
parameters:
av_zone_name:
type: string
description: Name of the compute node where we are creating the VM.
...
myserver:
type: OS::Nova::Server
depends_on:
- myvolume
properties:
name:
str_replace:
template: $stack_name$_server
params:
$stack_name$: { get_param: "OS::stack_name" }
flavor: { get_param: flavor_name }
image: { get_param: image_name }
key_name: { get_param: key_name }
# Next property needs admin privileges:
availability_zone: { get_param: av_zone_name }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160719/274de540/attachment.html>
More information about the Openstack
mailing list