heat-translator/translator/tests/data/nfv/tosca_placement_policy_affi...

36 lines
968 B
YAML

tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: >
Template for deploying the nodes based on given policies.
imports:
- tacker_defs.yaml
- tacker_nfv_defs.yaml
topology_template:
node_templates:
my_server:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: Linux
distribution: RHEL
version: 6.5
policies:
- my_compute_placement_policy:
type: tosca.policies.tacker.Placement
properties:
policy: affinity
strict: true
description: Apply my placement policy to my application's servers
targets: [ my_server ]