forked from cloudify-cosmo/cloudify-openstack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.yaml
1960 lines (1917 loc) · 70.7 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
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
##################################################################################
# Cloudify OpenStack built in types and plugins definitions.
##################################################################################
plugins:
openstack:
executor: central_deployment_agent
source: https://github.com/cloudify-cosmo/cloudify-openstack-plugin/archive/2.12.1.zip
package_name: cloudify-openstack-plugin
package_version: '2.12.1'
data_types:
cloudify.openstack.types.custom_configuration:
description: Custom configuration for OpenStack's API endpoints.
properties:
nova_client:
description: Parameters for Nova Client.
required: false
neutron_client:
description: Parameters for Neutron Client.
required: false
keystone_client:
description: Parameters for Keystone Client.
required: false
cinder_client:
description: Parameters for Cinder Client.
required: false
glance_client:
description: Parameters for Glance Client.
required: false
cloudify.openstack.types.logging.groups:
description: >
For logging groups' configuration. Each level can be one of the following values:
critical/error/warning/info/debug/notset
properties:
nova:
description: Default logging level for Nova.
type: string
required: false
neutron:
description: Default logging level for Neutron.
type: string
required: false
cinder:
description: Default logging level for Cinder.
type: string
required: false
keystone:
description: Default logging level for Keystone.
type: string
required: false
glance:
description: Default logging level for Glance.
type: string
required: false
cloudify.openstack.types.logging:
description: Logging configuration for OpenStack communication.
properties:
use_cfy_logger:
description: If true, a logging handler is added, which emits logs to the Cloudify logger.
type: boolean
default: true
groups:
description: Assigns logging level to logger groups.
type: cloudify.openstack.types.logging.groups
required: false
loggers:
description: Assigns logging level to custom loggers (dictionary of string -> logging level).
required: false
# Note: as per CFY-7824, this custom type cannot be used as an argument
# to the "type:" field of operation inputs.
cloudify.openstack.types.configuration:
description: Configuration for OpenStack communication.
properties:
username:
description: User to authenticate to KeyStone with.
type: string
required: false
password:
description: Password to authenticate to KeyStone with.
type: string
required: false
auth_url:
description: Keystone's URL (used for authentication).
type: string
required: false
tenant_name:
description: Name of tenant.
type: string
required: false
project_id:
description: ID of project to operate on.
type: string
required: false
project_name:
description: Name of project to operate on.
type: string
required: false
user_domain_name:
description: Domain name to operate on.
type: string
required: false
project_domain_name:
description: Project domain name to operate on.
type: string
required: false
region:
description: The region's name (optional if only one region exists).
type: string
required: false
insecure:
description: If true, SSL validation is skipped.
type: boolean
required: false
default: false
ca_cert:
description: Path to CA certificate to validate OpenStack's endpoint with.
type: string
required: false
nova_url:
description: DEPRECATED - use 'custom_configuration' and 'bypass_url' instead.
type: string
required: false
neutron_url:
description: DEPRECATED - use 'custom_configuration' and 'endpoint_url' instead.
type: string
required: false
custom_configuration:
description: Custom configuration for OpenStack's API endpoints.
type: cloudify.openstack.types.custom_configuration
required: false
logging:
description: Logging configuration.
type: cloudify.openstack.types.logging
required: false
node_types:
cloudify.openstack.nodes.Server:
derived_from: cloudify.nodes.Compute
properties:
server:
default: {}
description: >
The keypair object as described in OpenStack compute API (create server method):
https://developer.openstack.org/api-ref/compute/#servers-servers
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
image:
type: string
default: ''
description: >
The image for the server.
May receive either the ID or the name of the image.
note: This property is currently optional for backwards compatibility,
but will be modified to become a required property in future versions
(Default: '').
flavor:
type: string
default: ''
description: >
The flavor for the server.
May receive either the ID or the name of the flavor.
note: This property is currently optional for backwards compatibility,
but will be modified to become a required property in future versions
(Default: '').
management_network_name:
type: string
required: false
description: >
Old requirement called management network name. Not required. Leave blank. Retained for backward compatibility.
Not every server need be connected to a management network.
If the management network's name information is available in the Provider Context,
this connection is made automatically and there's no need to override this property
(See the Misc section for more information on the Openstack Provider Context).
It is not required to set the value of this property to the management network name. As of Cloudify 4.0, it has no relationship to the bootstrap process.
use_password:
type: boolean
default: false
description: >
A boolean describing whether this server image supports user-password authentication.
Images that do should post the administrator user's password to the Openstack metadata service (e.g. via cloudbase);
The password would then be retrieved by the plugin,
decrypted using the server's keypair and then saved in the server's runtime properties.
openstack_config:
type: cloudify.openstack.types.configuration
default: {}
description: >
see Openstack Configuraion
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.nova_plugin.server.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
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: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
stop:
implementation: openstack.nova_plugin.server.stop
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.nova_plugin.server.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
reboot:
implementation: openstack.nova_plugin.server.reboot
inputs:
reboot_type:
type: string
default: soft
# suspend/resume
cloudify.interfaces.freeze:
suspend:
implementation: openstack.nova_plugin.server.freeze_suspend
inputs: {}
resume:
implementation: openstack.nova_plugin.server.freeze_resume
inputs: {}
# backups related section
cloudify.interfaces.snapshot:
create:
implementation: openstack.nova_plugin.server.snapshot_create
inputs: {}
apply:
implementation: openstack.nova_plugin.server.snapshot_apply
inputs: {}
delete:
implementation: openstack.nova_plugin.server.snapshot_delete
inputs: {}
cloudify.interfaces.validation:
creation:
implementation: openstack.nova_plugin.server.creation_validation
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.nova_plugin.server.list_servers
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.WindowsServer:
derived_from: cloudify.openstack.nodes.Server
properties:
use_password:
type: boolean
default: true
description: >
Default changed for derived type
because Windows instances need a password for agent installation
os_family:
type: string
default: windows
description: >
(updates the os_family default as a convenience)
agent_config:
type: cloudify.datatypes.AgentConfig
default:
port: 5985
description: >
(updates the defaults for the agent_config for Windows)
cloudify.openstack.nodes.KeyPair:
derived_from: cloudify.nodes.Root
properties:
keypair:
default: {}
description: >
The keypair object as described in Openstack compute API (create keypair method):
https://developer.openstack.org/api-ref/compute/#keypairs-keypairs.
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:
type: string
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.
create_if_missing:
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
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:
type: cloudify.openstack.types.configuration
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: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.nova_plugin.keypair.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.nova_plugin.keypair.creation_validation
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.nova_plugin.keypair.list_keypairs
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.Subnet:
derived_from: cloudify.nodes.Subnet
properties:
subnet:
default: {}
description: >
The subnet object as described in Openstack networking API (create subnet method):
https://developer.openstack.org/api-ref/network/v2/index.html#subnets.
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.subnet.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.subnet.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.subnet.creation_validation
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.neutron_plugin.subnet.list_subnets
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.SecurityGroup:
derived_from: cloudify.nodes.SecurityGroup
properties:
security_group:
default: {}
description: >
The security-group object as described in Openstack networking API (create security-group method):
https://developer.openstack.org/api-ref/network/v2/index.html#security-groups-security-groups.
description:
type: string
default: ''
description: >
SecurityGroup description.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
default: {}
description: >
endpoints and authentication configuration for Openstack.
Expected to contain the following nested fields:
username, password, tenant_name, auth_url, region.
rules:
default: []
description: >
key-value security_group_rule configuration as described in:
https://developer.openstack.org/api-ref/network/v2/index.html#security-group-rules-security-group-rules.
disable_default_egress_rules:
type: boolean
default: false
description: >
a flag for removing the default rules which https://wiki.openstack.org/wiki/Neutron/SecurityGroups#Behavior. If not set to `true`, these rules will remain, and exist alongside any additional rules passed using the `rules` property.
interfaces:
cloudify.interfaces.lifecycle:
create:
implementation: openstack.neutron_plugin.security_group.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.security_group.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.security_group.creation_validation
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.neutron_plugin.security_group.list_security_groups
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.Router:
derived_from: cloudify.nodes.Router
properties:
router:
default: {}
description: >
The router object as described in Openstack networking API (create router method):
https://developer.openstack.org/api-ref/network/v2/index.html#routers-routers.
external_network:
type: string
default: ''
description: >
An external network name or ID.
If given, the router will use this external network as a gateway.
default_to_managers_external_network:
type: boolean
default: true
description: >
A boolean which determines whether to use the Cloudify Manager's external network if no other external network was given (whether by a relationship, by the `external_network` property or by the nested `external_gateway_info` key in the `router` property). This is only relevant if the manager's external network appears in the Provider-context. Defaults to `true`.
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.router.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.router.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.router.creation_validation
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
update:
implementation: openstack.neutron_plugin.router.update
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
list:
implementation: openstack.neutron_plugin.router.list_routers
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.Routes:
derived_from: cloudify.nodes.Root
properties:
routes:
default: []
description: >
The extra routes configuration for L3 router.
A list of dictionaries with destination and nexthop parameters.
It is available when extraroute extension is enabled.
Default is an empty list ([]).
https://developer.openstack.org/api-ref/network/v2/index.html#update-router
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.router.add_routes
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.router.delete_routes
cloudify.openstack.nodes.Port:
derived_from: cloudify.nodes.Port
properties:
port:
default: {}
description: >
The port object as described in Openstack networking API (create port method):
https://developer.openstack.org/api-ref-networking-v2.html#ports.
fixed_ip:
type: string
default: ''
description: >
may be used to request a specific fixed IP for the port.
If the IP is unavailable
(either already taken or does not belong to a subnet the port is on)
an error will be raised.
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.port.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.port.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.port.creation_validation
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.neutron_plugin.port.list_ports
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.Network:
derived_from: cloudify.nodes.Network
properties:
network:
default: {}
description: >
The network object as described in Openstack networking API (create network method):
https://developer.openstack.org/api-ref-networking-v2.html#networks.
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.network.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.network.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.network.creation_validation
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.neutron_plugin.network.list_networks
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.FloatingIP:
derived_from: cloudify.nodes.VirtualIP
properties:
floatingip:
default: {}
description: >
The floatingip object as described in Openstack networking API (create floatingip method):
https://developer.openstack.org/api-ref/network/v2/index.html#floating-ips-floatingips
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
description: IP address of the floating IP
default: ''
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.floatingip.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.floatingip.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.floatingip.creation_validation
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.operations:
list:
implementation: openstack.neutron_plugin.floatingip.list_floatingips
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.openstack.nodes.RBACPolicy:
derived_from: cloudify.nodes.Root
properties:
rbac_policy:
default: {}
description: >
The RBAC policy object as described in Openstack networking API (create RBAC policy method):
https://developer.openstack.org/api-ref/network/v2/#create-rbac-policy
use_external_resource:
type: boolean
default: false
description: >
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
type: boolean
default: false
description: >
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
type: string
default: ''
description: >
name to give to the new resource or the name or ID of an existing resource when the ``use_external_resource`` property is set to ``true`` (see the using existing resources section). Defaults to '' (empty string).
openstack_config:
type: cloudify.openstack.types.configuration
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.neutron_plugin.rbac_policy.create
inputs:
args:
default: {}
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
delete:
implementation: openstack.neutron_plugin.rbac_policy.delete
inputs:
openstack_config:
default: {}
resource_id:
type: string
default: { get_property: [ SELF, resource_id ] }
cloudify.interfaces.validation:
creation:
implementation: openstack.neutron_plugin.rbac_policy.creation_validation
inputs:
openstack_config: