-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.yaml
More file actions
952 lines (899 loc) · 32.1 KB
/
types.yaml
File metadata and controls
952 lines (899 loc) · 32.1 KB
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
tosca_definitions_version: tosca_simple_yaml_1_0
node_types:
##################################################################################################
# OpenStack authorization form
##################################################################################################
tosca.nodes.openstack.authorization:
derived_from: tosca.nodes.Root
properties:
username:
type: string
required: true
password:
type: string
required: true
project_name:
type: string
required: true
auth_url:
type: string
required: true
region_name:
type: string
required: false
user_domain_name:
type: string
required: false
project_domain_name:
type: string
required: false
attributes:
auth_properties:
type: map
auth_token:
type: string
capabilities:
attachable:
type: tosca.capabilities.openstack.auth.attachable
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.authorization:authorize
inputs:
type: map
##################################################################################################
# OpenStack SSH key
##################################################################################################
tosca.nodes.openstack.ssh_keypair:
derived_from: tosca.nodes.Root
properties:
use_connection_pool:
type: boolean
default: false
compute_api_version:
type: string
default: '2'
constraints:
- valid_values: ['2']
use_existing:
type: boolean
default: false
constraints:
- valid_values: [true, false]
name:
type: string
required: true
public_key:
type: string
required: False
attributes:
id:
type: string
name:
type: string
public_key:
type: string
private_key_content:
type: string
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.ssh:create
delete:
implementation: openstack_plugin.tasks.ssh:delete
##################################################################################################
# OpenStack compute instance
##################################################################################################
tosca.nodes.openstack.compute:
derived_from: tosca.nodes.Compute
properties:
use_connection_pool:
type: boolean
default: false
compute_api_version:
type: string
default: '2'
constraints:
- valid_values: ['2']
compute_name:
type: string
required: false
description: >
An identifier that represents an existing Compte instance in the
underlying cloud infrastructure or can be used as the name of the
newly created compute. If compute_name is provided
(with exception of compute_id), then an
existing compute instance will be used. If compute_name is provided
alongside with more properties then a new compute with this name will
be created.
compute_id:
type: string
required: false
description: >
An identifier that represents an existing Compute instance in the
underlying cloud infrastructure. This property is mutually exclusive
with all other properties except compute_name. This can be used alone
or together with compute_name to identify an existing network.
availability_zone:
type: string
required: false
config_drive:
type: boolean
default: true
required: false
capabilities:
host:
type: tosca.capabilities.openstack.flavor
binding:
type: tosca.capabilities.network.Bindable
os:
type: tosca.capabilities.OperatingSystem
scalable:
type: tosca.capabilities.Scalable
attributes:
compute_id:
type: string
networks:
type: list
ports:
type: map
entry_schema:
type: tosca.datatypes.network.PortInfo
artifacts:
image_ref:
type: tosca.artifacts.openstack.image
userdata:
type: tosca.artifacts.openstack.user_data
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.compute:create
inputs:
task_retries: 30
task_retry_interval: 10
start:
implementation: openstack_plugin.tasks.compute:start
inputs:
task_retries: 30
task_retry_interval: 10
stop:
implementation: openstack_plugin.tasks.compute:stop
inputs:
task_retries: 30
task_retry_interval: 10
delete:
implementation: openstack_plugin.tasks.compute:delete
inputs:
task_retries: 30
task_retry_interval: 10
##################################################################################################
# OpenStack network
##################################################################################################
tosca.nodes.openstack.network:
derived_from: tosca.nodes.network.Network
description: The TOSCA OpenStack Network node type
properties:
is_external:
type: boolean
required: false
default: false
network_name:
type: string
required: false
description: >
An identifier that represents an existing Network instance in the
underlying cloud infrastructure or can be used as the name of the
newly created network. If network_name is provided and no other
properties are provided (with exception of network_id), then an
existing network instance will be used. If network_name is provided
alongside with more properties then a new network with this name will
be created.
network_id:
type: string
required: false
description: >
An identifier that represents an existing Network instance in the
underlying cloud infrastructure. This property is mutually exclusive
with all other properties except network_name. This can be used alone
or together with network_name to identify an existing network.
capabilities:
link:
type: tosca.capabilities.network.Linkable
attributes:
network_id:
type: string
network_name:
type: string
subnets:
type: list
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.net:network_create
start:
implementation: openstack_plugin.tasks.net:network_start
delete:
implementation: openstack_plugin.tasks.net:network_delete
inputs:
task_retries: 10
task_retry_interval: 10
##################################################################################################
# OpenStack subnet
##################################################################################################
tosca.nodes.openstack.network.subnet:
derived_from: tosca.nodes.network.Network
description: The TOSCA OpenStack Network subnet node type
properties:
ip_version:
type: integer
required: false
default: 4
constraints:
- valid_values: [ 4, 6 ]
description: >
The IP version of the requested network. Valid values are 4 for ipv4
or 6 for ipv6.
cidr:
type: string
required: false
description: >
The cidr block of the requested network.
start_ip:
type: string
required: false
description: >
The IP address to be used as the start of a pool of addresses within
the full IP range derived from the cidr block.
end_ip:
type: string
required: false
description: >
The IP address to be used as the end of a pool of addresses within
the full IP range derived from the cidr block.
gateway_ip:
type: string
required: false
description: >
The gateway IP address.
network_name:
type: string
required: false
description: >
An identifier that represents an existing Network instance in the
underlying cloud infrastructure or can be used as the name of the
newly created network. If network_name is provided and no other
properties are provided (with exception of network_id), then an
existing network instance will be used. If network_name is provided
alongside with more properties then a new network with this name will
be created.
network_id:
type: string
required: false
description: >
An identifier that represents an existing Network instance in the
underlying cloud infrastructure. This property is mutually exclusive
with all other properties except network_name. This can be used alone
or together with network_name to identify an existing network.
segmentation_id:
type: string
required: false
description: >
A segmentation identifier in the underlying cloud infrastructure.
E.g. VLAN ID, GRE tunnel ID, etc..
network_type:
type: string
required: false
description: >
It specifies the nature of the physical network in the underlying
cloud infrastructure. Examples are flat, vlan, gre or vxlan.
For flat and vlan types, physical_network should be provided too.
physical_network:
type: string
required: false
description: >
It identifies the physical network on top of which the network is
implemented, e.g. physnet1. This property is required if network_type
is flat or vlan.
dhcp_enabled:
type: boolean
required: false
default: true
description: >
Indicates should DHCP service be enabled on the network or not.
dns_nameservers:
type: list
required: false
default: ['8.8.8.8', '8.8.4.4']
description: DNS nameserver
attributes:
link_id:
type: string
network_id:
type: string
network_name:
type: string
capabilities:
link:
type: tosca.capabilities.network.Linkable
requirements:
- link:
capability: tosca.capabilities.network.Linkable
node: tosca.nodes.openstack.network
relationship: tosca.relationships.openstack.network.linked
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.subnet:subnet_create
inputs:
task_retries: 10
task_retry_interval: 10
delete:
implementation: openstack_plugin.tasks.subnet:subnet_delete
inputs:
task_retries: 10
task_retry_interval: 10
##################################################################################################
# OpenStack port
##################################################################################################
tosca.nodes.openstack.network.port:
derived_from: tosca.nodes.network.Port
description: OpenStack network subnet port type
properties:
port_name:
type: string
required: false
description: >
An identifier that represents an existing Port instance in the
underlying cloud infrastructure or can be used as the name of the
newly created port. If port_name is provided and no other
properties are provided (with exception of port_id), then an
existing port instance will be used. If port_name is provided
alongside with more properties then a new port with this name will
be created.
port_id:
type: string
required: false
description: >
An identifier that represents an existing Port instance in the
underlying cloud infrastructure. This property is mutually exclusive
with all other properties except port_name. This can be used alone
or together with port_name to identify an existing network.
ip_address:
type: string
required: false
description: Allow the user to set a static IP.
order:
type: integer
required: false
default: 0
constraints:
- greater_or_equal: 0
description: The order of the NIC on the compute instance (e.g. eth2).
is_default:
type: boolean
required: false
default: false
description: >
If is_default=true this port will be used for the default gateway
route. Only one port that is associated to single compute node can
set as is_default=true.
ip_range_start:
type: string
required: false
description: >
Defines the starting IP of a range to be allocated for the compute
instances that are associated with this Port.
ip_range_end:
type: string
required: false
description: >
Defines the ending IP of a range to be allocated for the compute
instances that are associated with this Port.
attributes:
ip_address:
type: string
requirements:
- binding:
description: >
Binding requirement expresses the relationship between Port and
Compute nodes. Effectively it indicates that the Port will be
attached to specific Compute node instance
capability: tosca.capabilities.network.Bindable
relationship: tosca.relationships.network.BindsTo
node: tosca.nodes.openstack.compute
- link:
description: >
Link requirement expresses the relationship between Port and Network
nodes. It indicates which network this port will connect to.
capability: tosca.capabilities.network.Linkable
relationship: tosca.relationships.openstack.network.linked
node: tosca.nodes.openstack.network.subnet
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.port:port_create
start:
implementation: openstack_plugin.tasks.port:port_start
stop:
implementation: openstack_plugin.tasks.port:port_stop
delete:
implementation: openstack_plugin.tasks.port:port_delete
inputs:
task_retries: 10
task_retry_interval: 10
##################################################################################################
# OpenStack router
##################################################################################################
tosca.nodes.openstack.network.router:
derived_from: tosca.nodes.Root
description: OpenStack network router
properties:
router_name:
type: string
required: false
description: >
An identifier that represents an existing router instance in the
underlying cloud infrastructure or can be used as the name of the
newly created port. If port_name is provided and no other
properties are provided (with exception of router_id), then an
existing port instance will be used. If router_name is provided
alongside with more properties then a new port with this name will
be created.
router_id:
type: string
required: false
description: >
An identifier that represents an existing router instance in the
underlying cloud infrastructure. This property is mutually exclusive
with all other properties except router_name. This can be used alone
or together with router_name to identify an existing network.
capabilities:
link:
type: tosca.capabilities.network.Linkable
attributes:
router_id:
type: string
requirements:
- link:
description: >
Binding requirement expresses the relationship between Router and
External network. Effectively it indicates that the Router will be
attached to specific Router using external gateway info
capability: tosca.capabilities.network.Linkable
relationship: tosca.relationships.openstack.network.router.bind
node: tosca.nodes.openstack.network
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.router:router_create
start:
implementation: openstack_plugin.tasks.router:router_start
delete:
implementation: openstack_plugin.tasks.router:router_delete
inputs:
task_retries: 10
task_retry_interval: 10
##################################################################################################
# OpenStack floating IP
##################################################################################################
tosca.nodes.openstack.network.floating_ip:
derived_from: tosca.nodes.Root
properties:
floating_ip_id:
type: string
required: false
desceription: Specify floating IP ID to use existing instead of allocating new
attributes:
fixed_ip_address:
type: string
floating_ip_address:
type: string
floating_ip_id:
type: string
port_id:
type: string
router_id:
type: string
capabilities:
binding:
type: tosca.capabilities.network.Bindable
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.floating_ip:floatingip_create
delete:
implementation: openstack_plugin.tasks.floating_ip:floatingip_delete
inputs:
task_retries: 10
task_retry_interval: 10
requirements:
- link:
capability: tosca.capabilities.network.Linkable
node: tosca.nodes.openstack.network
relationship: tosca.relationships.openstack.network.floating_ip
- binding:
capability: tosca.capabilities.Bindable
node: tosca.nodes.openstack.network.port
relationship: tosca.relationships.openstack.network.port.floating_ip
##################################################################################################
# OpenStack Security group and Rules
##################################################################################################
tosca.nodes.openstack.network.port.security_group:
derived_from: tosca.nodes.Root
properties:
security_group_name:
type: string
required: false
security_group_id:
type: string
required: false
description:
type: string
required: false
attributes:
security_group_id:
type: string
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.security_group:security_group_create
delete:
implementation: openstack_plugin.tasks.security_group:security_group_delete
tosca.nodes.openstack.network.port.security_group.rule:
derived_from: tosca.nodes.Root
properties:
direction:
type: string
required: true
constraints:
- valid_values: ['ingress', 'egress']
ethertype:
type: string
constraints:
- valid_values: ['IPv4', 'IPv6']
required: true
port_range_min:
type: integer
required: true
constraints:
- valid_values: [1, 65535]
port_range_max:
type: integer
required: true
constraints:
- valid_values: [1, 65535]
protocol:
type: string
constraints:
- valid_values: ['tcp', 'icmp', 'udp']
required: true
remote_ip_prefix:
type: string
required: true
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: aiorchestra.core.noop:noop
delete:
implementation: aiorchestra.core.noop:noop
##################################################################################################
# OpenStack load balancer (LBaaS v2)
##################################################################################################
tosca.nodes.openstack.network.load_balancer:
derived_from: tosca.nodes.Root
properties:
algorithm:
type: string
required: false
protocol:
type: string
required: false
default: 'tcp'
protocol_port:
type: integer
required: false
default: 80
capabilities:
client:
type: tosca.capabilities.openstack.network.load_balancer.endpoint
requirements:
- application:
capability: tosca.capabilities.openstack.network.load_balancer.member.endpoint
relationship: tosca.relationships.openstack.network.load_balancer.member
node: tosca.nodes.openstack.compute
occurrences: [0, UNBOUNDED]
description: Connection to one or more load balanced applications
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.lbaas:create
start:
implementation: openstack_plugin.tasks.lbaas:start
stop:
implementation: openstack_plugin.tasks.lbaas:stop
delete:
implementation: openstack_plugin.tasks.lbaas:delete
##################################################################################################
# OpenStack compute file injection
##################################################################################################
tosca.nodes.openstack.compute.file:
derived_from: tosca.nodes.Root
properties:
source:
type: string
required: true
destination:
type: string
required: true
interfaces:
Standard:
type: tosca.interfaces.node.lifecycle.Standard
create:
implementation: openstack_plugin.tasks.compute:setup_injection
##################################################################################################
# OpenStack artifacts
##################################################################################################
tosca.artifacts.openstack.image:
derived_from: tosca.artifacts.Deployment.Image
description: Glance image artifact
image:
type: string
tosca.artifacts.openstack.compute.injection_file:
derived_from: tosca.artifacts.Deployment.Image
description: Nova boot file injection
source:
type: string
destination:
type: string
tosca.artifacts.openstack.compute.userdata:
derived_from: tosca.artifacts.Implementation.Bash
description: Nova compute boot user data
script:
type: string
##################################################################################################
# OpenStack relationships
##################################################################################################
tosca.relationships.openstack.inject_auth:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.authorization:inject
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.authorization:eject
inputs:
type: map
tosca.relationships.openstack.ssh_keypair_provider:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.ssh:link
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.ssh:unlink
inputs:
type: map
tosca.relationships.openstack.compute.injected_with:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.compute:inject_file
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.compute:eject_file
inputs:
type: map
tosca.relationships.openstack.network.linked:
derived_from: tosca.relationships.Root
valid_target_types: [tosca.nodes.openstack.network, tosca.nodes.openstack.network.subnet]
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.net:link
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.net:unlink
inputs:
type: map
tosca.relationships.openstack.compute.port.bind:
derived_from: tosca.relationships.Root
description: >
Effectively binds network port to compute.
This relationship should be used with compute node in its requirements.
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.port:add_port
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.port:remove_port
inputs:
type: map
tosca.relationships.openstack.network.port.bind:
derived_from: tosca.relationships.Root
description: >
Effectively binds compute to network port.
This relationship should be used with port node in its requirements.
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.port:bind_compute_to_port
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.port:unbind_compute_from_port
inputs:
type: map
tosca.relationships.openstack.network.router.bind:
derived_from: tosca.relationships.Root
valid_target_types: [tosca.nodes.openstack.network]
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.router:link_router_to_external_network
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.router:unlink_router_from_external_network
inputs:
type: map
tosca.relationships.openstack.network.router.link:
derived_from: tosca.relationships.Root
valid_target_types: [tosca.nodes.openstack.network.subnet]
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.subnet:link_subnet_to_router
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.subnet:unlink_subnet_to_router
inputs:
type: map
tosca.relationships.openstack.network.floating_ip.provider:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.floating_ip:inject_floating_ip_attributes
unlink:
implementation: openstack_plugin.tasks.floating_ip:eject_floating_ip_attributes
tosca.relationships.openstack.network.floating_ip:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.floating_ip:link_floatingip_to_network
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.floating_ip:unlink_floatingip_from_network
inputs:
type: map
tosca.relationships.openstack.network.port.floating_ip:
derived_from: tosca.relationships.Root
valid_target_types: [tosca.nodes.openstack.network.port]
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.floating_ip:link_floatingip_to_port
inputs:
type: map
unlink:
implementation: openstack_plugin.tasks.floating_ip:unlink_floatingip_from_port
inputs:
type: map
tosca.relationships.openstack.network.port.security_group.rule:
derived_from: tosca.relationships.Root
valid_target_types: [tosca.nodes.openstack.network.port.security_group.rule]
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.security_group:connect_security_groups_rule
unlink:
implementation: openstack_plugin.tasks.security_group:disconnect_security_groups_rule
tosca.relationships.openstack.network.port.security_group.attached:
derived_from: tosca.relationships.Root
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.security_group:link_security_groups_to_port
unlink:
implementation: openstack_plugin.tasks.security_group:unlink_security_groups_from_port
tosca.relationships.openstack.network.load_balancer.member:
derived_from: tosca.relationships.Root
valid_target_types: [tosca.nodes.openstack.compute]
interfaces:
Configure:
type: tosca.interfaces.relationship.Configure
link:
implementation: openstack_plugin.tasks.lbaas:add_member
inputs:
network_id:
type: string
unlink:
implementation: openstack_plugin.tasks.lbaas:remove_member
##################################################################################################
# OpenStack capabilities
##################################################################################################
tosca.capabilities.openstack.network.load_balancer.endpoint:
derived_from: tosca.capabilities.Endpoint.Public
properties:
network_id:
type: string
tosca.capabilities.openstack.network.load_balancer.member.endpoint:
derived_from: tosca.capabilities.Endpoint
properties:
weight:
type: integer
default: 1
ip_address:
type: integer
tosca.capabilities.openstack.network.port.bindable:
derived_from: tosca.capabilities.Node
tosca.capabilities.openstack.network.port.security_group.attachable:
derived_from: tosca.capabilities.Node
tosca.capabilities.openstack.network.port.security_group.rule.attachable:
derived_from: tosca.capabilities.Node
tosca.capabilities.openstack.auth.attachable:
derived_from: tosca.capabilities.Node
tosca.capabilities.openstack.compute.ssh.attachable:
derived_from: tosca.capabilities.Node
tosca.capabilities.openstack.flavor:
derived_from: tosca.capabilities.Container
properties:
flavor:
type: string
required: true
num_cpus:
required: false
type: integer
constraints:
- greater_or_equal: 1
cpu_frequency:
required: false
type: scalar-unit.frequency
constraints:
- greater_or_equal: 0.1 GHz
disk_size:
required: false
type: scalar-unit.size
constraints:
- greater_or_equal: 0 MB
mem_size:
required: false
type: scalar-unit.size
constraints:
- greater_or_equal: 0 MB