heat-translator/samples/tests/data/hot_output/etsi_nfv/hot_nfv_vdu_affinity_with_s...

48 lines
1.0 KiB
YAML

heat_template_version: 2013-05-23
description: >
Template for deploying two VDUs with scope nfvi_node.
parameters: {}
resources:
VDU1:
type: OS::Nova::Server
properties:
flavor: { get_resource: VDU1_flavor }
name: VDU1
image: #ADD_YOUR_IMAGE_HERE
scheduler_hints:
group: { get_resource: Affinity_group }
VDU2:
type: OS::Nova::Server
properties:
flavor: { get_resource: VDU2_flavor }
name: VDU2
image: #ADD_YOUR_IMAGE_HERE
scheduler_hints:
group: { get_resource: AntiAffinity_group }
Affinity_group:
type: OS::Nova::ServerGroup
properties:
name: Affinity_group
policies:
- affinity
AntiAffinity_group:
type: OS::Nova::ServerGroup
properties:
name: AntiAffinity_group
policies:
- anti-affinity
VDU1_flavor:
type: OS::Nova::Flavor
properties:
ram: 512
vcpus: 1
disk: 1
VDU2_flavor:
type: OS::Nova::Flavor
properties:
ram: 512
vcpus: 1
disk: 1
outputs: {}