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