-
Notifications
You must be signed in to change notification settings - Fork 0
/
output-sample.yml
302 lines (302 loc) · 9.26 KB
/
output-sample.yml
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
description: This is a demo short service blueprint.
node_types:
radon.nodes.VM.OpenStack:
attributes:
id:
description: OpenStack id of the VM
type: string
derived_from: tosca.nodes.Compute
interfaces:
Standard:
operations:
create:
implementation: nodetypes/vm/create.yml
inputs:
vm_name:
default:
get_property:
- SELF
- name
delete:
implementation: nodetypes/vm/delete.yml
inputs:
id:
default:
get_attribute:
- SELF
- id
type: tosca.interfaces.node.lifecycle.Standard
properties:
flavor:
description: OpenStack flavor id (flavor names are not accepted)
type: string
image:
type: string
key_name:
description: OpenStack SSH key name that should be placed on the VM
type: string
name:
type: string
network:
description: OpenStack network id (network names are not accepted)
type: string
radon.nodes.abstract.DataPipeline:
derived_from: tosca.nodes.Root
radon.nodes.nifi.Nifi:
capabilities:
host:
type: tosca.capabilities.Container
derived_from: tosca.nodes.SoftwareComponent
interfaces:
Standard:
operations:
configure:
implementation: nodetypes/radon/nodes/nifi/nifiplatform/files/configure.yml
inputs:
tarball_version:
default:
get_property:
- SELF
- component_version
create:
implementation: nodetypes/radon/nodes/nifi/nifiplatform/files/create.yml
inputs:
tarball_version:
default:
get_property:
- SELF
- component_version
delete:
implementation: nodetypes/radon/nodes/nifi/nifiplatform/files/delete.yml
inputs:
tarball_version:
default:
get_property:
- SELF
- component_version
start:
implementation: nodetypes/radon/nodes/nifi/nifiplatform/files/start.yml
stop:
implementation: nodetypes/radon/nodes/nifi/nifiplatform/files/stop.yml
type: tosca.interfaces.node.lifecycle.Standard
properties:
component_version:
description: The version of Apache Nifi
required: true
type: string
port:
default: 8080
description: The port exposed by Apache Nifi
required: true
type: string
radon.nodes.nifi.nifipipeline:
attributes:
id:
description: Unique ID of the pipeline
type: string
pipeline_type:
description: type of the pipeline. e.g. processor, process-groups, inputPorts,
RPG etc
type: string
capabilities:
connectToPipeline:
description: Capability to receive data from other pipeline nodes
occurrences:
- 0
- UNBOUNDED
type: tosca.capabilities.Endpoint
valid_source_types:
- radon.nodes.nifi.nifipipeline
derived_from: radon.nodes.abstract.DataPipeline
interfaces:
Standard:
operations:
configure:
implementation: nodetypes/radon/nodes/nifi/nifipipeline/files/configure.yml
inputs:
cred_file_path:
default:
get_property:
- SELF
- cred_file_path
object_name:
default:
get_property:
- SELF
- object_name
create:
implementation: nodetypes/radon/nodes/nifi/nifipipeline/files/create.yml
inputs:
template_file:
default:
get_property:
- SELF
- template_file
template_name:
default:
get_property:
- SELF
- template_name
delete:
implementation: nodetypes/radon/nodes/nifi/nifipipeline/files/delete.yml
inputs:
pipeline_id:
default:
get_attribute:
- SELF
- id
pipeline_type:
default:
get_attribute:
- SELF
- pipeline_type
start:
implementation: nodetypes/radon/nodes/nifi/nifipipeline/files/start.yml
inputs:
pipeline_id:
default:
get_attribute:
- SELF
- id
pipeline_type:
default:
get_attribute:
- SELF
- pipeline_type
stop:
implementation: nodetypes/radon/nodes/nifi/nifipipeline/files/stop.yml
inputs:
pipeline_id:
default:
get_attribute:
- SELF
- id
pipeline_type:
default:
get_attribute:
- SELF
- pipeline_type
type: tosca.interfaces.node.lifecycle.Standard
properties:
cred_file_path:
description: credential file for access and secret key
type: string
object_name:
description: object name in the process group
type: string
template_file:
description: XML implementation of the pipeline
type: string
template_name:
description: name of the pipeline
type: string
requirements:
- host:
capability: tosca.capabilities.Container
node: radon.nodes.nifi.Nifi
relationship: tosca.relationships.HostedOn
- connectToPipeline:
capability: tosca.capabilities.Endpoint
node: radon.nodes.nifi.nifipipeline
occurrences:
- 0
- 1
relationship: radon.relationships.datapipelines.ConnectNiFi
relationship_types:
radon.relationships.datapipelines.ConnectNiFi:
derived_from: tosca.relationships.ConnectsTo
description: Connecting two nifi data pipelines for forwarding data. The pipelines
should be on same server.
interfaces:
Configure:
operations:
post_configure_source:
implementation:
primary: dpp/connectPipelines.yml
inputs:
source_pipeline_id:
default:
get_attribute:
- SOURCE
- id
source_pipeline_server_ip:
default:
get_attribute:
- SOURCE
- host
- host
- public_address
target_pipeline_id:
default:
get_attribute:
- TARGET
- id
target_pipeline_server_ip:
default:
get_attribute:
- TARGET
- host
- host
- public_address
topology_template:
node_templates:
nifi_vmone:
properties:
component_version: 1.11.1
requirements:
- host: vmone
type: radon.nodes.nifi.Nifi
nifi_vmtwo:
properties:
component_version: 1.11.1
requirements:
- host: vmtwo
type: radon.nodes.nifi.Nifi
pipeline1_getS3Img:
properties:
cred_file_path: /home/opera_0.5.2/DP_demo/V1/files/credentials
object_name: ListS3
template_file: /home/opera_0.5.2/DP_demo/V1/files/readFrmS3_PG.xml
template_name: readFrmS3_PG
requirements:
- host: nifi_vmone
- connectToRemotePipeline: pipeline2_invokeLmabda
type: radon.nodes.nifi.nifipipeline
pipeline2_invokeLmabda:
properties:
cred_file_path: /home/opera_0.5.2/DP_demo/V1/files/credentials
object_name: invokeLambda
template_file: /home/opera_0.5.2/DP_demo/V1/files/invokeLambda_PG.xml
template_name: invokeLambda_PG
requirements:
- host: nifi_vmtwo
- connectToPipeline: pipeline3_pushImg
type: radon.nodes.nifi.nifipipeline
pipeline3_pushImg:
properties:
cred_file_path: /home/opera_0.5.2/DP_demo/V1/files/credentials
object_name: PutS3Object
template_file: /home/opera_0.5.2/DP_demo/V1/files/pushToS3_PG.xml
template_name: pushToS3_PG
requirements:
- host: nifi_vmtwo
type: radon.nodes.nifi.nifipipeline
vmone:
properties:
flavor: m2.tiny
image: 13a94b11-98ee-43a4-ad29-00ae97e8f790
key_name: macbook-chinmaya
name: vmone_centos1
network: provider_64_net
type: radon.nodes.VM.OpenStack
vmtwo:
properties:
flavor: m2.tiny
image: 13a94b11-98ee-43a4-ad29-00ae97e8f790
key_name: macbook-chinmaya
name: vmtwo_centos2
network: provider_64_net
requirements:
- dependency: vmone
type: radon.nodes.VM.OpenStack
tosca_definitions_version: tosca_simple_yaml_1_3