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