-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.yaml
73 lines (68 loc) · 2.21 KB
/
types.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
tosca_definitions_version: tosca_simple_yaml_1_0
node_types:
##################################################################################################
# AsyncSSH relationship type
##################################################################################################
tosca.asyncssh.software_configuration.inject_environment:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: asyncssh_plugin.tasks:inject
inputs:
type: map
unlink:
implementation: asyncssh_plugin.tasks:eject
inputs:
type: map
##################################################################################################
# AsyncSSH Software Configuration
##################################################################################################
tosca.asyncssh.software_configuration.script:
derived_from: tosca.nodes.Root
properties:
username:
type: string
required: true
password:
type: string
default: ''
required: false
port:
type: integer
required: false
default: 22
install_script:
type: string
required: true
uninstall_script:
type: string
required: false
default: ''
requirements:
- compute:
node: tosca.nodes.Root
relationship: tosca.relationships.DependsOn
occurrences: [0, 1]
- environment:
node: tosca.nodes.Root
relationship: tosca.asyncssh.software_configuration.inject_environment
occurrences: [0, 1]
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: asyncssh_plugin.tasks:create
start:
implementation: asyncssh_plugin.tasks:install
inputs:
task_retries: 10
task_retry_interval: 10
stop:
implementation: asyncssh_plugin.tasks:uninstall
inputs:
task_retries: 10
task_retry_interval: 10
delete:
implementation: asyncssh_plugin.tasks:delete