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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
|
#
# Copyright (c) 2017 GigaSpaces Technologies Ltd. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
tosca_definitions_version: tosca_simple_yaml_1_0
topology_template:
policies:
cloudify-openstack-plugin:
description: >-
openstack plugin executes operations.
type: aria.Plugin
properties:
version: 2.0.1
data_types:
aria.openstack.datatypes.Config:
description: >-
openstack configuration
properties:
username:
type: string
password:
type: string
tenant_name:
type: string
auth_url:
type: string
region:
type: string
required: false
nova_url:
type: string
required: false
neutron_url:
type: string
required: false
aria.openstack.datatypes.Rules:
description: >-
openstack security group rules
properties:
remote_ip_prefix:
type: string
default: 0.0.0.0/0
port:
type: integer
default:
# source: https://developer.openstack.org/api-ref/compute/
aria.openstack.datatypes.Server:
description: >-
openstack Server args.
properties:
security_groups:
type: list
entry_schema: string
required: false
availability_zone:
type: string
required: false
userdata:
type: string
required: false
aria.openstack.datatypes.Keypair:
description: >-
openstack keypair args.
properties:
public_key:
type: string
required: false
type:
type: string
required: false
user_id:
type: string
required: false
# source: https://developer.openstack.org/api-ref/block-storage/v2/index.html
aria.openstack.datatypes.Volume:
description: >-
openstack volume args.
properties:
size:
type: integer
required: false
description:
type: string
required: false
availability_zone:
type: string
required: false
consistencygroup_id:
type: string
required: false
volume_type:
type: string
required: false
snapshot_id:
type: string
required: false
source_replica:
type: string
required: false
tenant_id:
type: string
required: false
# source: https://developer.openstack.org/api-ref/image/
aria.openstack.datatypes.Image:
description: >-
openstack image args.
properties:
id:
type: string
required: false
min_disk:
type: integer
required: false
min_ram:
type: integer
required: false
name:
type: string
required: false
protected:
type: boolean
required: false
tags:
type: list
entry_schema: string
required: false
visibility:
type: string
required: false
# source: https://developer.openstack.org/api-ref/identity/v3/
aria.openstack.datatypes.Project:
description: >-
openstack image args.
properties:
is_domain:
type: boolean
required: false
description:
type: string
required: false
domain_id:
type: string
required: false
name:
type: string
required: false
enabled:
type: boolean
required: false
parent_id:
type: string
required: false
# source: https://developer.openstack.org/api-ref/networking/v2/index.html
aria.openstack.datatypes.Subnet:
description: >-
openstack subnet args.
properties:
network_id:
type: string
required: false
ip_version:
type: integer
required: false
default: 4
cidr:
type: string
required: false
gateway_ip:
type: string
required: false
dns_nameservers:
type: list
entry_schema: string
required: false
enable_dhcp:
type: boolean
required: false
tenant_id:
type: string
required: false
aria.openstack.datatypes.Port:
description: >-
openstack port args
properties:
network_id:
type: string
required: false
admin_state_up:
type: boolean
required: false
status:
type: string
required: false
mac_address:
type: string
required: false
device_id:
type: string
required: false
device_owner:
type: string
required: false
tenant_id:
type: string
required: false
aria.openstack.datatypes.Network:
description: >-
openstack network args
properties:
admin_state_up:
type: boolean
required: false
status:
type: string
required: false
subnets:
type: list
entry_schema: string
required: false
shared:
type: boolean
required: false
tenant_id:
type: string
required: false
aria.openstack.datatypes.SecurityGroup:
description: >-
openstack network args
properties:
admin_state_up:
type: boolean
required: false
port_security_enabled:
type: boolean
required: false
project_id:
type: string
required: false
qos_policy_id:
type: string
required: false
segments:
type: list
entry_schema: string
required: false
shared:
type: boolean
required: false
vlan_transparent:
type: boolean
required: false
tenant_id:
type: string
required: false
aria.openstack.datatypes.Router:
description: >-
openstack network args
properties:
bgpvpn_id:
type: string
required: false
router_id:
type: string
required: false
aria.openstack.datatypes.FloatingIP:
description: >-
openstack network args
properties:
tenant_id:
type: string
required: false
project_id:
type: string
required: false
floating_network_id:
type: string
required: false
floating_network_name:
type: string
required: false
fixed_ip_address:
type: string
required: false
floating_ip_address:
type: string
required: false
port_id:
type: string
required: false
subnet_id:
type: string
required: false
interface_types:
aria.openstack.interfaces.validation:
derived_from: tosca.interfaces.Root
creation:
description: >-
creation operation for the openstack validation interface
deletion:
description: >-
deletion operation for the openstack validation interface
node_types:
aria.openstack.nodes.Server:
derived_from: tosca.nodes.Compute
properties:
server:
default: {}
type: aria.openstack.datatypes.Server
required: false
ip:
default:
type: string
os_family:
description: >-
Property specifying what type of operating system family
this compute node will run.
default: linux
type: string
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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:
default: ''
type: string
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:
default: ''
type: string
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: '').
use_password:
default: false
type: boolean
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.
management_network_name:
type: string
description: >-
The current implementation of the openstack plugin requires this field. The value of
this field should be set to the openstack name of a network this server is attached to.
openstack_config:
type: aria.openstack.datatypes.Config
required: false
description: >-
see Openstack Configuraion
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > nova_plugin.server.create
inputs:
args:
required: false
default: {}
type: aria.openstack.datatypes.Server
start:
implementation: cloudify-openstack-plugin > nova_plugin.server.start
inputs:
start_retry_interval:
default: 30
type: integer
private_key_path:
type: string
default: ''
required: true
stop: cloudify-openstack-plugin > nova_plugin.server.stop
delete: cloudify-openstack-plugin > nova_plugin.server.delete
Validation:
type: aria.openstack.interfaces.validation
creation:
implementation: cloudify-openstack-plugin > nova_plugin.server.creation_validation
inputs:
args:
required: false
default: {}
type: aria.openstack.datatypes.Server
requirements:
- floating_ip:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.FloatingIP
relationship: aria.openstack.server_connected_to_floating_ip
occurrences: [ 0, UNBOUNDED ]
- security_group:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.SecurityGroup
relationship: aria.openstack.server_connected_to_security_group
occurrences: [ 0, UNBOUNDED ]
- port:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.Port
relationship: aria.openstack.server_connected_to_port
occurrences: [ 0, UNBOUNDED ]
- key_pair:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.KeyPair
relationship: aria.openstack.server_connected_to_keypair
occurrences: [ 0, UNBOUNDED ]
capabilities:
openstack_container:
type: Node
aria.openstack.nodes.WindowsServer:
derived_from: aria.openstack.nodes.Server
properties:
use_password:
default: true
type: boolean
description: >-
Default changed for derived type
because Windows instances need a password for agent installation
os_family:
default: windows
type: string
description: >-
(updates the os_family default as a convenience)
aria.openstack.nodes.KeyPair:
derived_from: tosca.nodes.Root
properties:
keypair:
default: {}
type: aria.openstack.datatypes.Keypair
required: false
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.
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.
type: string
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
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > nova_plugin.keypair.create
inputs:
args:
required: false
default: {}
type: aria.openstack.datatypes.Keypair
delete: cloudify-openstack-plugin > nova_plugin.keypair.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > nova_plugin.keypair.creation_validation
capabilities:
keypair:
type: tosca.capabilities.Node
aria.openstack.nodes.Subnet:
derived_from: tosca.nodes.Root
properties:
subnet:
type: aria.openstack.datatypes.Subnet
required: false
default:
cidr: 172.16.0.0/16
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > neutron_plugin.subnet.create
inputs:
args:
required: false
type: aria.openstack.datatypes.Subnet
default:
cidr: 172.16.0.0/16
delete: cloudify-openstack-plugin > neutron_plugin.subnet.delete
Validation:
type: aria.openstack.interfaces.validation
creation:
implementation: cloudify-openstack-plugin > neutron_plugin.subnet.creation_validation
inputs:
args:
type: aria.openstack.datatypes.Subnet
required: false
default:
cidr: 172.16.0.0/16
requirements:
- router:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.Router
relationship: aria.openstack.subnet_connected_to_router
occurrences: [ 0, UNBOUNDED ]
- network:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.Network
capabilities:
subnet:
type: tosca.capabilities.Node
aria.openstack.nodes.SecurityGroup:
derived_from: tosca.nodes.Root
properties:
security_group:
type: aria.openstack.datatypes.SecurityGroup
required: false
default: {}
description:
type: string
default: ''
description: >-
SecurityGroup description.
create_if_missing:
default: false
type: boolean
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:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
rules:
default: []
type: list
entry_schema: aria.openstack.datatypes.Rules
disable_default_egress_rules:
default: false
type: boolean
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:
Standard:
create:
implementation: cloudify-openstack-plugin > neutron_plugin.security_group.create
inputs:
args:
type: aria.openstack.datatypes.SecurityGroup
required: false
default: {}
delete: cloudify-openstack-plugin > neutron_plugin.security_group.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > neutron_plugin.security_group.creation_validation
capabilities:
security:
type: tosca.capabilities.Node
aria.openstack.nodes.Router:
derived_from: tosca.nodes.Root
properties:
router:
type: aria.openstack.datatypes.Router
required: false
default: {}
external_network:
default: ''
type: string
description: >-
An external network name or ID.
If given, the router will use this external network as a gateway.
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
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).
type: string
openstack_config:
type: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > neutron_plugin.router.create
inputs:
args:
default: {}
type: aria.openstack.datatypes.Router
required: false
delete: cloudify-openstack-plugin > neutron_plugin.router.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > neutron_plugin.router.creation_validation
capabilities:
gateway:
type: tosca.capabilities.Node
aria.openstack.nodes.Port:
derived_from: tosca.nodes.Root
properties:
port:
type: aria.openstack.datatypes.Port
required: false
default: {}
fixed_ip:
default: ''
type: string
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > neutron_plugin.port.create
inputs:
args:
default: {}
type: aria.openstack.datatypes.Port
required: false
delete: cloudify-openstack-plugin > neutron_plugin.port.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > neutron_plugin.port.creation_validation
requirements:
- security_group:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.SecurityGroup
relationship: aria.openstack.port_connected_to_security_group
occurrences: [ 0, UNBOUNDED ]
- floating_ip:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.FloatingIP
relationship: aria.openstack.port_connected_to_floating_ip
occurrences: [ 0, UNBOUNDED ]
- subnet:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.Subnet
relationship: aria.openstack.port_connected_to_subnet
- network:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.Network
occurrences: [ 0, UNBOUNDED ]
capabilities:
entry_point:
type: tosca.capabilities.Node
aria.openstack.nodes.Network:
derived_from: tosca.nodes.Root
properties:
network:
type: aria.openstack.datatypes.Network
required: false
default: {}
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > neutron_plugin.network.create
inputs:
args:
default: {}
type: aria.openstack.datatypes.Network
required: false
delete: cloudify-openstack-plugin > neutron_plugin.network.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > neutron_plugin.network.creation_validation
capabilities:
address_space:
type: tosca.capabilities.Node
aria.openstack.nodes.FloatingIP:
derived_from: tosca.nodes.Root
attributes:
floating_ip_address:
type: string
properties:
floatingip:
type: aria.openstack.datatypes.FloatingIP
required: false
default: {}
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
description: IP address of the floating IP
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > neutron_plugin.floatingip.create
inputs:
args:
default: {}
type: aria.openstack.datatypes.FloatingIP
required: false
delete: cloudify-openstack-plugin > neutron_plugin.floatingip.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > neutron_plugin.floatingip.creation_validation
capabilities:
address:
type: tosca.capabilities.Node
aria.openstack.nodes.Volume:
derived_from: tosca.nodes.Root
properties:
volume:
default: {}
type: aria.openstack.datatypes.Volume
description: >-
key-value volume configuration as described in http://developer.openstack.org/api-ref-blockstorage-v1.html#volumes-v1. (**DEPRECATED - Use the `args` input in create operation instead**)
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:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default:
type: string
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).
device_name:
default: auto
type: string
description: >-
The device name this volume will be attached to.
Default value is *auto*,
which means openstack will auto-assign a device.
Note that if you do explicitly set a value,
this value may not be the actual device name assigned.
Sometimes the device requested will not be available and openstack will assign it to a different device,
this is why we recommend using *auto*.
openstack_config:
type: aria.openstack.datatypes.Config
required: false
boot:
type: boolean
default: false
description: >-
If a Server instance is connected to this Volume by a relationship,
this volume will be used as the boot volume for that Server.
interfaces:
Standard:
create:
implementation: cloudify-openstack-plugin > cinder_plugin.volume.create
inputs:
args:
default: {}
type: aria.openstack.datatypes.Volume
required: false
status_attempts:
description: >-
Number of times to check for the creation's status before failing
type: integer
default: 20
status_timeout:
description: >-
Interval (in seconds) between subsequent inquiries of the creation's
status
type: integer
default: 15
delete: cloudify-openstack-plugin > cinder_plugin.volume.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > cinder_plugin.volume.creation_validation
requirements:
- server:
capability: tosca.capabilities.Node
node: aria.openstack.nodes.Server
relationship: aria.openstack.volume_attached_to_server
aria.openstack.nodes.Image:
derived_from: tosca.nodes.Root
properties:
image:
description: >-
Required parameters are (container_format, disk_format). Accepted
types are available on
http://docs.openstack.org/developer/glance/formats.html
To create an image from the local file its path should be added
in data parameter.
default: {}
type: map
entry_schema: string
image_url:
default: ''
type: string
description: >-
The openstack resource URL for the image.
use_external_resource:
default: false
type: boolean
description: >-
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create: cloudify-openstack-plugin > glance_plugin.image.create
start:
implementation: cloudify-openstack-plugin > glance_plugin.image.start
inputs:
start_retry_interval:
default: 30
type: integer
delete: cloudify-openstack-plugin > glance_plugin.image.delete
Validation:
type: aria.openstack.interfaces.validation
creation: cloudify-openstack-plugin > glance_plugin.image.creation_validation
aria.openstack.nodes.Project:
derived_from: tosca.nodes.Root
properties:
project:
default: {}
type: aria.openstack.datatypes.Project
description: >-
key-value project configuration.
users:
default: []
type: list
entry_schema: string
description: >-
List of users assigned to this project in the following format:
{ name: string, roles: [string] }
quota:
default: {}
type: map
entry_schema: string
description: |
A dictionary mapping service names to quota definitions for a proejct
e.g::
quota:
neutron: <quota>
nova: <quota>
use_external_resource:
default: false
type: boolean
description: >-
a boolean for setting whether to create the resource or use an existing one.
See the using existing resources section.
create_if_missing:
default: false
type: boolean
description: >-
If use_external_resource is ``true`` and the resource is missing,
create it instead of failing.
resource_id:
default: ''
type: string
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: aria.openstack.datatypes.Config
required: false
interfaces:
Standard:
create: openstack.keystone_plugin.project.create
start: openstack.keystone_plugin.project.start
delete: openstack.keystone_plugin.project.delete
Validation:
type: aria.openstack.interfaces.validation
creation: openstack.keystone_plugin.project.creation_validation
relationship_types:
aria.openstack.port_connected_to_security_group:
derived_from: ConnectsTo
interfaces:
Configure:
add_source: cloudify-openstack-plugin > neutron_plugin.port.connect_security_group
aria.openstack.subnet_connected_to_router:
derived_from: ConnectsTo
interfaces:
Configure:
add_target: cloudify-openstack-plugin > neutron_plugin.router.connect_subnet
remove_target: cloudify-openstack-plugin > neutron_plugin.router.disconnect_subnet
aria.openstack.server_connected_to_floating_ip:
derived_from: ConnectsTo
interfaces:
Configure:
add_source:
implementation: cloudify-openstack-plugin > 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: ''
remove_source: cloudify-openstack-plugin > nova_plugin.server.disconnect_floatingip
aria.openstack.port_connected_to_floating_ip:
derived_from: ConnectsTo
interfaces:
Configure:
add_source: cloudify-openstack-plugin > neutron_plugin.floatingip.connect_port
remove_source: cloudify-openstack-plugin > neutron_plugin.floatingip.disconnect_port
aria.openstack.server_connected_to_security_group:
derived_from: ConnectsTo
interfaces:
Configure:
add_source: cloudify-openstack-plugin > nova_plugin.server.connect_security_group
remove_source: cloudify-openstack-plugin > nova_plugin.server.disconnect_security_group
aria.openstack.server_connected_to_port:
derived_from: ConnectsTo
interfaces:
Configure:
remove_source: cloudify-openstack-plugin > neutron_plugin.port.detach
aria.openstack.server_connected_to_keypair:
derived_from: ConnectsTo
aria.openstack.port_connected_to_subnet:
derived_from: ConnectsTo
aria.openstack.volume_attached_to_server:
derived_from: ConnectsTo
interfaces:
Configure:
add_target:
implementation: cloudify-openstack-plugin > nova_plugin.server.attach_volume
inputs:
status_attempts:
description: >
Number of times to check for the attachment's status before failing
type: integer
default: 10
status_timeout:
description: >
Interval (in seconds) between subsequent inquiries of the attachment's
status
type: integer
default: 2
remove_target:
implementation: cloudify-openstack-plugin > nova_plugin.server.detach_volume
inputs:
status_attempts:
description: >
Number of times to check for the detachment's status before failing
type: integer
default: 10
status_timeout:
description: >
Interval (in seconds) between subsequent inquiries of the detachment's
status
type: integer
default: 2
|