forked from cloudify-cosmo/cloudify-openstack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.yaml
569 lines (547 loc) · 16.8 KB
/
plugin.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
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
##################################################################################
# Cloudify OpenStack built in types and plugins definitions.
##################################################################################
plugins:
openstack:
executor: central_deployment_agent
source: https://github.com/cloudify-cosmo/cloudify-openstack-plugin/archive/1.3rc1.zip
package_name: cloudify-openstack-plugin
package_version: 1.3rc1
node_types:
cloudify.openstack.nodes.Server:
derived_from: cloudify.nodes.Compute
properties:
server:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
image:
default: ''
flavor:
default: ''
management_network_name:
default: ''
use_password:
default: false
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.nova_plugin.server.create
inputs:
args:
default: {}
openstack_config:
default: {}
start:
implementation: openstack.nova_plugin.server.start
inputs:
start_retry_interval:
description: Polling interval until the server is active in seconds
type: integer
default: 30
private_key_path:
description: >
Path to private key which matches the server's
public key. Will be used to decrypt password in case
the "use_password" property is set to "true"
type: string
default: ''
openstack_config:
default: {}
stop:
implementation: openstack.nova_plugin.server.stop
inputs:
openstack_config:
default: {}
delete:
implementation: openstack.nova_plugin.server.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.nova_plugin.server.creation_validation
inputs:
args:
default: {}
openstack_config:
default: {}
cloudify.openstack.nodes.WindowsServer:
derived_from: cloudify.openstack.nodes.Server
properties:
use_password:
default: true
os_family:
default: windows
agent_config:
type: cloudify.datatypes.AgentConfig
default:
port: 5985
cloudify.openstack.nodes.KeyPair:
derived_from: cloudify.nodes.Root
properties:
keypair:
default: {}
description: >
the keypair object as described by Openstack. This
parameter can be used to override and pass parameters
directly to Nova client.
Note that in the case of keypair, the only nested parameter
that can be used is "name".
private_key_path:
description: >
the path (on the machine the plugin is running on) to
where the private key should be stored. If
use_external_resource is set to "true", the existing
private key is expected to be at this path.
use_external_resource:
type: boolean
default: false
description: >
a boolean describing whether this resource should be
created or rather that it already exists on Openstack
and should be used as-is.
resource_id:
default: ''
description: >
the name that will be given to the resource on Openstack (excluding optional prefix).
If not provided, a default name will be given instead.
If use_external_resource is set to "true", this exact
value (without any prefixes applied) will be looked for
as either the name or id of an existing keypair to be used.
openstack_config:
default: {}
description: >
endpoints and authentication configuration for Openstack.
Expected to contain the following nested fields:
username, password, tenant_name, auth_url, region.
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.nova_plugin.keypair.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.nova_plugin.keypair.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.nova_plugin.keypair.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nodes.Subnet:
derived_from: cloudify.nodes.Subnet
properties:
subnet:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.subnet.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.neutron_plugin.subnet.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.subnet.creation_validation
inputs:
args:
default: {}
openstack_config:
default: {}
cloudify.openstack.nodes.SecurityGroup:
derived_from: cloudify.nodes.SecurityGroup
properties:
security_group:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
rules:
default: []
disable_default_egress_rules:
default: false
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.security_group.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.neutron_plugin.security_group.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.security_group.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nodes.Router:
derived_from: cloudify.nodes.Router
properties:
router:
default: {}
external_network:
default: ''
default_to_managers_external_network:
default: true
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.router.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.neutron_plugin.router.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.router.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nodes.Port:
derived_from: cloudify.nodes.Port
properties:
port:
default: {}
fixed_ip:
default: ''
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.port.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.neutron_plugin.port.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.port.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nodes.Network:
derived_from: cloudify.nodes.Network
properties:
network:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.network.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.neutron_plugin.network.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.network.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nodes.FloatingIP:
derived_from: cloudify.nodes.VirtualIP
properties:
floatingip:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.floatingip.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.neutron_plugin.floatingip.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.floatingip.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nodes.Volume:
derived_from: cloudify.nodes.Volume
properties:
volume:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
device_name:
default: auto
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.cinder_plugin.volume.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.cinder_plugin.volume.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.cinder_plugin.volume.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nova_net.nodes.FloatingIP:
derived_from: cloudify.nodes.VirtualIP
properties:
floatingip:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.nova_plugin.floatingip.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.nova_plugin.floatingip.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.nova_plugin.floatingip.creation_validation
inputs:
openstack_config:
default: {}
cloudify.openstack.nova_net.nodes.SecurityGroup:
derived_from: cloudify.nodes.SecurityGroup
properties:
security_group:
default: {}
use_external_resource:
type: boolean
default: false
resource_id:
default: ''
openstack_config:
default: {}
rules:
default: []
description:
description: security group description
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.nova_plugin.security_group.create
inputs:
args:
default: {}
openstack_config:
default: {}
delete:
implementation: openstack.nova_plugin.security_group.delete
inputs:
openstack_config:
default: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.nova_plugin.security_group.creation_validation
inputs:
openstack_config:
default: {}
relationships:
cloudify.openstack.port_connected_to_security_group:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: openstack.neutron_plugin.port.connect_security_group
inputs:
openstack_config:
default: {}
cloudify.openstack.subnet_connected_to_router:
derived_from: cloudify.relationships.connected_to
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: openstack.neutron_plugin.router.connect_subnet
inputs:
openstack_config:
default: {}
unlink:
implementation: openstack.neutron_plugin.router.disconnect_subnet
inputs:
openstack_config:
default: {}
cloudify.openstack.server_connected_to_floating_ip:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: openstack.nova_plugin.server.connect_floatingip
inputs:
fixed_ip:
description: >
The fixed IP to be associated with the floating IP.
If omitted, Openstack will choose which port to associate.
type: string
default: ''
openstack_config:
default: {}
unlink:
implementation: openstack.nova_plugin.server.disconnect_floatingip
inputs:
openstack_config:
default: {}
cloudify.openstack.port_connected_to_floating_ip:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: openstack.neutron_plugin.floatingip.connect_port
inputs:
openstack_config:
default: {}
unlink:
implementation: openstack.neutron_plugin.floatingip.disconnect_port
inputs:
openstack_config:
default: {}
cloudify.openstack.server_connected_to_security_group:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: openstack.nova_plugin.server.connect_security_group
inputs:
openstack_config:
default: {}
unlink:
implementation: openstack.nova_plugin.server.disconnect_security_group
inputs:
openstack_config:
default: {}
cloudify.openstack.server_connected_to_port:
derived_from: cloudify.relationships.connected_to
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
unlink:
implementation: openstack.neutron_plugin.port.detach
inputs:
openstack_config:
default: {}
cloudify.openstack.server_connected_to_keypair:
derived_from: cloudify.relationships.connected_to
cloudify.openstack.port_connected_to_subnet:
derived_from: cloudify.relationships.connected_to
cloudify.openstack.volume_attached_to_server:
derived_from: cloudify.relationships.connected_to
target_interfaces:
cloudify.interfaces.relationship_lifecycle:
establish:
implementation: openstack.nova_plugin.server.attach_volume
inputs:
openstack_config:
default: {}
unlink:
implementation: openstack.nova_plugin.server.detach_volume
inputs:
openstack_config:
default: {}