-
Notifications
You must be signed in to change notification settings - Fork 79
/
deployment_update_functions.yaml
68 lines (63 loc) · 2.2 KB
/
deployment_update_functions.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
tosca_definitions_version: cloudify_dsl_1_3
imports:
- cloudify/types/types.yaml
- plugins/testmockoperations.yaml
node_types:
type1:
derived_from: cloudify.nodes.Root
properties:
prop1: {}
prop2: {}
inputs:
fail_create:
default: false
type: boolean
input1:
{}
node_templates:
node1:
type: type1
properties:
prop1: {get_input: input1}
prop2: 'aaa'
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: testmockoperations.testmockoperations.tasks.maybe_fail
inputs:
should_fail: {get_input: fail_create}
configure:
implementation: testmockoperations.testmockoperations.tasks.store_in_runtime_props
inputs:
arg_value: {get_input: input1}
node2:
type: type1
properties:
prop1: {get_input: input1}
prop2: 'aaa'
relationships:
- type: cloudify.relationships.depends_on
target: node1
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: testmockoperations.testmockoperations.tasks.store_relationship_in_runtime_props
inputs:
input_value: {get_input: input1}
prop_value: {get_property: [SOURCE, prop1]}
prefix: source_
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: testmockoperations.testmockoperations.tasks.store_relationship_in_runtime_props
inputs:
input_value: {get_input: input1}
prop_value: {get_property: [TARGET, prop1]}
prefix: target_
outputs:
out1:
value: {get_input: input1}
out2:
value: {get_property: [node1, prop1]}
out3:
value: {get_property: [node1, prop2]}