blob: e033c3c08d92a325a56d5b69212f40bd8612d5d6 (
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
46
47
48
|
tosca_definitions_version: tosca_simple_yaml_1_0
description: TOSCA template to test Compute node with interface
node_types:
tosca.nodes.CustomCompute:
derived_from: tosca.nodes.Compute
properties:
install_path:
type: string
default: /opt
interfaces:
Standard:
create:
implementation: install.sh
inputs:
install_path: { get_property: [ SELF, install_path ] }
topology_template:
node_templates:
softwarecomponent_without_behavior:
type: tosca.nodes.SoftwareComponent
requirements:
- host: server
softwarecomponent_depending_on_customcompute_install:
type: tosca.nodes.SoftwareComponent
interfaces:
Standard:
create:
implementation: post_install.sh
requirements:
- host: server
server:
type: tosca.nodes.CustomCompute
capabilities:
host:
properties:
num_cpus: 1
mem_size: 1 GB
os:
properties:
type: Linux
distribution: Ubuntu
version: 12.04
architecture: x86_64
|