blob: 7decb3371d5609609993542340f7c9b19f683de8 (
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
49
50
51
52
53
54
|
tosca_definitions_version: tosca_simple_yaml_1_0
description: TOSCA template to test get_operation_output by exchanging ssh public key
topology_template:
node_templates:
server1:
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
server2:
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
generate_ssh_key:
type: tosca.nodes.SoftwareComponent
interfaces:
Standard:
create: artifacts/ssh/ssh_generate_keys.sh
requirements:
- host: server1
import_public_key:
type: tosca.nodes.SoftwareComponent
interfaces:
Standard:
create:
implementation: artifacts/ssh/ssh_import_public_key.sh
inputs:
public_key: { get_operation_output: [generate_ssh_key, Standard, create, public_key] }
requirements:
- host: server2
- dependency: generate_ssh_key
|