Update tosca lib to version 0.5
[parser.git] / tosca2heat / heat-translator / translator / tests / data / test_tosca_custom_type.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: TOSCA template to test custom type with an interface defined on it
4
5 node_types:
6   tosca.nodes.CustomWebServer:
7     derived_from: tosca.nodes.WebServer
8     properties:
9       custom_install_path:
10         type: string
11         default: /home/custom/custom
12     interfaces:
13       Standard:
14         create:
15           implementation: install.sh
16           inputs:
17             path: { get_property: [ SELF, custom_install_path ] }
18
19 topology_template:
20   inputs:
21     install_path:
22       type: string
23       default: /home/custom/other
24
25   node_templates:
26
27     customwebserver:
28       type: tosca.nodes.CustomWebServer
29       requirements:
30         - host: server
31       properties:
32         custom_install_path : { get_input: install_path }
33
34     server:
35       type: tosca.nodes.Compute
36       capabilities:
37         host:
38          properties:
39            num_cpus: 1
40            mem_size: 1 GB
41         os:
42           properties:
43             type: Linux
44             distribution: Ubuntu
45             version: 12.04
46             architecture: x86_64
47