Update tosca lib to version 0.5
[parser.git] / tosca2heat / heat-translator / translator / tests / data / tosca_policies.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: Template for deploying the nodes based on given policies.
4
5 topology_template:
6   node_templates:
7     my_server:
8       type: tosca.nodes.Compute
9       capabilities:
10         # Host container properties
11         host:
12          properties:
13            num_cpus: 2
14            disk_size: 10 GB
15            mem_size: 512 MB
16         # Guest Operating System properties
17         os:
18           properties:
19             # host Operating System image properties
20             architecture: x86_64
21             type: Linux
22             distribution: RHEL
23             version: 6.5
24   policies:
25      - my_compute_placement_policy:
26          type: tosca.policies.Placement
27          description: Apply my placement policy to my application’s servers
28          targets: [ my_server ]