Update tosca lib to version 0.5
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / data / test_custom_relationships.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: Test template for deploying a single server with predefined properties and custom relationship types
4
5 imports:
6   - custom_types/custom_relationship_type_defs.yaml
7
8 topology_template:
9   node_templates:
10     server1:
11       type: tosca.nodes.HACompute
12       capabilities:
13         # Host container properties
14         host:
15          properties:
16            num_cpus: 2
17            disk_size: 10 GB
18            mem_size: 512 MB
19         # Guest Operating System properties
20         os:
21           properties:
22             # host Operating System image properties
23             architecture: x86_64
24             type: Linux
25             distribution: RHEL
26             version: 6.5
27       requirements:
28         - high_availability: server2
29
30     server2:
31       type: tosca.nodes.HACompute
32       capabilities:
33         # Host container properties
34         host:
35          properties:
36            num_cpus: 2
37            disk_size: 10 GB
38            mem_size: 512 MB
39         # Guest Operating System properties
40         os:
41           properties:
42             # host Operating System image properties
43             architecture: x86_64
44             type: Linux
45             distribution: RHEL
46             version: 6.5
47       requirements:
48         - high_availability: server1