-
Notifications
You must be signed in to change notification settings - Fork 2
/
custom_types.yaml
1926 lines (1848 loc) · 59.1 KB
/
custom_types.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
tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_author: GRyCAP
template_name: GRyCAP Custom Types
template_version: "1.0.0"
description: Contains the custom types definition used in the IM/EC3 and IM Dashboard
data_types:
tosca.datatypes.oscar.StorageIOConfig:
derived_from: tosca.datatypes.Root
properties:
storage_provider:
type: string
required: true
path:
type: string
required: true
suffix:
type: string
required: false
prefix:
type: string
required: false
tosca.datatypes.oscar.StorageProviders:
derived_from: tosca.datatypes.Root
properties:
minio:
type: map
entry_schema:
type: tosca.datatypes.oscar.StorageMinIOProvider
required: false
s3:
type: map
entry_schema:
type: tosca.datatypes.oscar.StorageS3Provider
required: false
onedata:
type: map
entry_schema:
type: tosca.datatypes.oscar.StorageOnedataProvider
required: false
tosca.datatypes.oscar.StorageS3Provider:
derived_from: tosca.datatypes.Root
properties:
access_key:
type: string
required: true
secret_key:
type: string
required: true
region:
type: string
required: true
tosca.datatypes.oscar.StorageOnedataProvider:
derived_from: tosca.datatypes.Root
properties:
oneprovider_host:
type: string
required: true
token:
type: string
required: true
space:
type: string
required: true
tosca.datatypes.oscar.StorageMinIOProvider:
derived_from: tosca.datatypes.oscar.StorageS3Provider
properties:
endpoint:
type: string
required: true
verify:
type: boolean
required: false
default: false
tosca.datatypes.indigo.AnsibleTask:
derived_from: tosca.datatypes.Root
description: he Tosca AnsibleTask type is a complex TOSCA data Type used when describing a single Ansible task.
properties:
state:
description: the state returned by Ansiible (ok, failed, skipped, ...)
type: string
output:
description: the output (if available) returned by the Ansible task.
type: string
tosca.datatypes.indigo.CtxtTask:
derived_from: tosca.datatypes.Root
description: The Tosca CtxtTask type is a complex TOSCA data Type used when describing the outputs of the ansible contextualization process.
properties:
tasks:
type: map
description: The tasks map contains the tasks made by the ctxt agent
entry_schema:
type: tosca.datatypes.indigo.AnsibleTask
tosca.datatypes.indigo.network.PortSpec:
derived_from: tosca.datatypes.network.PortSpec
properties:
remote_cidr:
description: CIDR of the remote allowed IPs.
type: string
required: no
endpoint:
description: The endpoint to which the port is associated
type: string
required: no
capability_types:
tosca.capabilities.indigo.OperatingSystem:
derived_from: tosca.capabilities.OperatingSystem
properties:
gpu_driver:
type: boolean
required: no
cuda_support:
type: boolean
required: no
cuda_min_version:
type: string
required: no
cuDNN_version:
type: string
required: no
image:
type: string
required: no
credential:
type: tosca.datatypes.Credential
required: no
vo:
type: string
required: no
tosca.capabilities.indigo.Scalable:
derived_from: tosca.capabilities.Scalable
properties:
min_instances:
type: integer
default: 1
required: no
max_instances:
type: integer
default: 1
required: no
count:
type: integer
description: the number of resources
required: no
default: 1
removal_list:
type: list
description: list of IDs of the resources to be removed
required: no
entry_schema:
type: string
tosca.capabilities.indigo.Container:
derived_from: tosca.capabilities.Container
properties:
preemtible_instance:
type: boolean
required: no
instance_type:
type: string
required: no
num_gpus:
type: integer
required: false
gpu_vendor:
type: string
required: false
gpu_model:
type: string
required: false
sgx:
type: boolean
required: no
sgx_epc_size:
type: scalar-unit.size
required: no
disk_type:
type: string
required: no
tosca.capabilities.indigo.LRMS:
derived_from: tosca.capabilities.Container
properties:
type:
type: string
required: true
constraints:
- valid_values: [ local, torque, slurm, sge, htcondor, mesos, kubernetes, nomad ]
tosca.capabilities.indigo.LRMS.Torque:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: torque
constraints:
- equal: torque
tosca.capabilities.indigo.LRMS.Slurm:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: slurm
constraints:
- equal: slurm
tosca.capabilities.indigo.LRMS.HTCondor:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: htcondor
constraints:
- equal: htcondor
tosca.capabilities.indigo.LRMS.Kubernetes:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: kubernetes
constraints:
- equal: kubernetes
tosca.capabilities.indigo.LRMS.Local:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: local
constraints:
- equal: local
tosca.capabilities.indigo.LRMS.Mesos:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: mesos
constraints:
- equal: mesos
tosca.capabilities.indigo.LRMS.Nomad:
derived_from: tosca.capabilities.indigo.LRMS
properties:
type:
type: string
required: true
default: nomad
constraints:
- equal: nomad
tosca.capabilities.indigo.Endpoint:
derived_from: tosca.capabilities.Endpoint
properties:
dns_name:
description: The optional name to register with DNS
type: string
required: false
additional_dns_names:
description: An optional list of DNS names to register to this endpoint
type: list
entry_schema:
type: string
required: false
private_ip:
description: Flag used to specify that this endpoint will require also a private IP although it is a public one.
type: boolean
required: false
default: true
ports:
type: map
description: The optional map of ports the Endpoint supports (if more than one).
required: false
constraints:
- min_length: 1
entry_schema:
type: tosca.datatypes.indigo.network.PortSpec
additional_ip:
description: The optional additional IP to set to the endpoint
type: string
required: false
attributes:
credential:
type: list
entry_schema:
type: tosca.datatypes.Credential
tosca.capabilities.Container.Docker:
derived_from: tosca.capabilities.Container
properties:
# Overriding the default num_cpus property to allow float values
num_cpus:
type: float
required: false
constraints:
- greater_than: 0
version:
type: list
required: false
entry_schema:
type: version
publish_all:
type: boolean
default: false
required: false
# In publish_ports, use the type tosca.datatypes.indigo.network.PortSpec
# to enable to specify the endpoint to which the port is associated
publish_ports:
type: list
entry_schema:
type: tosca.datatypes.indigo.network.PortSpec
required: false
expose_ports:
type: list
entry_schema:
type: tosca.datatypes.network.PortSpec
required: false
volumes:
type: list
entry_schema:
type: string
required: false
host_id:
type: string
required: false
volume_id:
type: string
required: false
artifact_types:
tosca.artifacts.Implementation.YAML:
derived_from: tosca.artifacts.Implementation
description: YAML Ansible recipe artifact
mime_type: text/yaml
file_ext: [ yaml, yml ]
tosca.artifacts.AnsibleGalaxy.role:
derived_from: tosca.artifacts.Root
description: Ansible Galaxy role to be deployed in the target node
tosca.artifacts.AnsibleGalaxy.collection:
derived_from: tosca.artifacts.Root
description: Ansible Galaxy collection to be installed in the target node
relationship_types:
tosca.relationships.indigo.Manages:
derived_from: tosca.relationships.Root
tosca.relationships.indigo.AttachesTo:
derived_from: tosca.relationships.AttachesTo
properties:
fs_type:
type: string
required: false
default:
node_types:
tosca.nodes.indigo.Compute:
derived_from: tosca.nodes.Compute
attributes:
private_address:
type: list
entry_schema:
type: string
public_address:
type: list
entry_schema:
type: string
ctxt_log:
type: string
ansible_output:
type: map
entry_schema:
type: tosca.datatypes.indigo.CtxtTask
properties:
os_users:
type: list
description: Users creation
entry_schema:
type: tosca.datatypes.indigo.User
default: []
required: false
tags:
type: map
description: Map of tags to associate to the Compute instance
entry_schema:
type: string
default: {}
required: false
instance_name:
type: string
description: Name to set the cloud instance associated to this Compute
default: ''
required: false
capabilities:
scalable:
type: tosca.capabilities.indigo.Scalable
os:
type: tosca.capabilities.indigo.OperatingSystem
endpoint:
type: tosca.capabilities.indigo.Endpoint
host:
type: tosca.capabilities.indigo.Container
valid_source_types: [tosca.nodes.SoftwareComponent]
tosca.nodes.ec3.Application:
derived_from: tosca.nodes.SoftwareComponent
capabilities:
endpoint:
type: tosca.capabilities.indigo.Endpoint
tosca.nodes.ec3.ElasticCluster:
derived_from: tosca.nodes.ec3.Application
properties:
secret_token:
type: string
description: Token to access CLUES web interface
default: not_very_secret_token
required: false
powermanager_plugin:
type: string
description: Plugin that will manage the VMs (indigo_orchestrator or im)
default: indigo_orchestrator
required: false
im_auth:
type: string
description: IM auth data (deprecated)
default: ""
required: false
auth_token:
type: map
entry_schema:
type: string
description: Auth data with the URL and token to get the auth data from IM-Dashboard
default: {}
required: false
config_options:
type: list
entry_schema:
type: map
description: CLUES config options
default:
- { section: 'scheduling', option: 'IDLE_TIME', value: '1800' }
- { section: 'scheduling', option: 'RECONSIDER_JOB_TIME', value: '120' }
- { section: 'monitoring', option: 'MAX_WAIT_POWERON', value: '3000' }
- { section: 'monitoring', option: 'MAX_WAIT_POWEROFF', value: '600' }
- { section: 'monitoring', option: 'PERIOD_LIFECYCLE', value: '10' }
- { section: 'monitoring', option: 'PERIOD_MONITORING_NODES', value: '2' }
- { section: 'client', option: 'CLUES_REQUEST_WAIT_TIMEOUT', value: '3000' }
required: false
kube_token:
type: string
description: Kubernetes admoin token
default: ""
required: false
kube_wn_cpus:
type: integer
description: Kubernetes WNs CPUs
default: 2
required: false
kube_wn_mem:
type: scalar-unit.size
description: Kubernetes WNs Memory
default: 4 GiB
required: false
artifacts:
clues_role:
file: grycap.clues
type: tosca.artifacts.AnsibleGalaxy.role
im_role:
file: grycap.im
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
create:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/ec3_install.yml
inputs:
clues_secret_token: { get_property: [ SELF, secret_token ] }
clues_queue_system: { get_property: [ SELF, lrms, type ] }
max_number_of_nodes: { get_property: [ SELF, wn, max_instances] }
clues_powermanager_plugin: { get_property: [ SELF, powermanager_plugin] }
auth: { get_property: [ SELF, im_auth] } # deprecated
clues_auth_token: { get_property: [ SELF, auth_token] }
clues_git_branch: im_rest
clues_config_options: { get_property: [ SELF, config_options] }
clues_kube_token: { get_property: [ SELF, kube_token] }
KUBERNETES_NODE_MEMORY: { get_property: [ SELF, kube_wn_mem ] }
KUBERNETES_NODE_SLOTS: { get_property: [ SELF, kube_wn_cpus ] }
requirements:
- wn:
capability: tosca.capabilities.Scalable
node: tosca.nodes.indigo.LRMS.WorkerNode
relationship: tosca.relationships.indigo.Manages
- lrms:
capability: tosca.capabilities.indigo.LRMS
node: tosca.nodes.indigo.LRMS.FrontEnd
relationship: tosca.relationships.HostedOn
tosca.nodes.indigo.LRMS.WorkerNode:
derived_from: tosca.nodes.SoftwareComponent
properties:
front_end_ip:
type: string
description: IP of the Front-End node
required: true
public_front_end_ip:
type: string
description: Public IP of the Front-End node
required: false
default: ''
capabilities:
wn:
type: tosca.capabilities.Scalable
valid_source_types: [tosca.nodes.indigo.ElasticCluster]
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
tosca.nodes.indigo.LRMS.FrontEnd:
derived_from: tosca.nodes.SoftwareComponent
properties:
wn_ips:
type: list
entry_schema:
type: string
description: List of IPs of the WNs
required: false
default: []
capabilities:
lrms:
type: tosca.capabilities.indigo.LRMS
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
tosca.nodes.indigo.LRMS.FrontEnd.Local:
derived_from: tosca.nodes.indigo.LRMS.FrontEnd
capabilities:
lrms:
type: tosca.capabilities.indigo.LRMS.Local
tosca.nodes.indigo.LRMS.WorkerNode.Kubernetes:
derived_from: tosca.nodes.indigo.LRMS.WorkerNode
properties:
version:
required: no
type: string
default: "1.18.8"
nvidia_support:
required: no
type: boolean
default: false
cri_runtime:
required: no
type: string
default: "docker"
constraints:
- valid_values: [ docker, containerd, crio ]
csi_driver:
required: no
type: string
default: "NFS"
constraints:
- valid_values: [ NFS, Longhorn ]
artifacts:
kube_role:
file: grycap.kubernetes
type: tosca.artifacts.AnsibleGalaxy.role
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/kube_wn_install.yml
inputs:
kube_front_end_ip: { get_property: [ SELF, front_end_ip ] }
kube_version: { get_property: [ SELF, version ] }
kube_nvidia_support: { get_property: [ SELF, nvidia_support ] }
kube_cri_runtime: { get_property: [ SELF, cri_runtime ] }
kube_csi_driver: { get_property: [ SELF, csi_driver ] }
tosca.nodes.indigo.LRMS.FrontEnd.Kubernetes:
derived_from: tosca.nodes.indigo.LRMS.FrontEnd
properties:
admin_username:
required: no
type: string
default: kubeuser
admin_token:
required: no
type: string
value: some_insecure_token
install_kubeapps:
required: no
type: boolean
default: false
install_metrics:
required: no
type: boolean
default: true
install_nfs_client:
required: no
type: boolean
default: true
nfs_client_path:
required: no
type: string
default: '/pv'
install_ingress:
required: no
type: boolean
default: true
install_dashboard:
required: no
type: boolean
default: true
install_yunikorn:
required: no
type: boolean
default: false
version:
required: no
type: string
default: "1.18.8"
nvidia_support:
required: no
type: boolean
default: false
cert_manager:
required: no
type: boolean
default: false
cert_user_email:
required: no
type: string
default: "[email protected]"
public_dns_name:
required: no
type: string
default: ""
cert_manager_challenge:
required: no
type: string
default: "http01"
cert_manager_challenge_dns01_domain:
required: no
type: string
default: ""
cert_manager_challenge_dns01_ak:
required: no
type: string
default: ""
cert_manager_challenge_dns01_sk:
required: no
type: string
default: ""
cert_manager_wildcard_cert_dns_name:
required: no
type: string
default: ""
cri_runtime:
required: no
type: string
default: "docker"
constraints:
- valid_values: [ docker, containerd, crio ]
csi_driver:
required: no
type: string
default: "NFS"
constraints:
- valid_values: [ NFS, Longhorn ]
artifacts:
kube_role:
file: grycap.kubernetes
type: tosca.artifacts.AnsibleGalaxy.role
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
capabilities:
lrms:
type: tosca.capabilities.indigo.LRMS.Kubernetes
endpoint:
type: tosca.capabilities.indigo.Endpoint
host:
type: tosca.capabilities.Container
valid_source_types: [ tosca.nodes.indigo.Helm.Chart ]
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/kube_fe_install.yml
inputs:
kube_front_end_ip: { get_attribute: [ HOST, private_address, 0 ] }
kube_admin_username: { get_property: [ SELF, admin_username ] }
kube_admin_token: { get_property: [ SELF, admin_token ] }
kube_install_kubeapps: { get_property: [ SELF, install_kubeapps ] }
kube_install_metrics: { get_property: [ SELF, install_metrics ] }
kube_install_nfs_client: { get_property: [ SELF, install_nfs_client ] }
kube_nfs_path: { get_property: [ SELF, nfs_client_path ] }
kube_install_ingress: { get_property: [ SELF, install_ingress ] }
kube_version: { get_property: [ SELF, version ] }
kube_nvidia_support: { get_property: [ SELF, nvidia_support ] }
kube_cert_manager: { get_property: [ SELF, cert_manager ] }
kube_cert_user_email: { get_property: [ SELF, cert_user_email ] }
kube_public_dns_name: { get_property: [ SELF, public_dns_name ] }
kube_cert_manager_challenge: { get_property: [ SELF, cert_manager_challenge ] }
kube_cert_manager_challenge_dns01_domain: { get_property: [ SELF, cert_manager_challenge_dns01_domain ] }
kube_cert_manager_challenge_dns01_ak: { get_property: [ SELF, cert_manager_challenge_dns01_ak ] }
kube_cert_manager_challenge_dns01_sk: { get_property: [ SELF, cert_manager_challenge_dns01_sk ] }
kube_cert_manager_wildcard_cert_dns_name: { get_property: [ SELF, cert_manager_wildcard_cert_dns_name ] }
kube_cri_runtime: { get_property: [ SELF, cri_runtime ] }
kube_install_yunikorn: { get_property: [ SELF, install_yunikorn ] }
kube_deploy_dashboard: { get_property: [ SELF, install_dashboard ] }
kube_csi_driver: { get_property: [ SELF, csi_driver ] }
tosca.nodes.indigo.LRMS.WorkerNode.Slurm:
derived_from: tosca.nodes.indigo.LRMS.WorkerNode
properties:
version:
type: string
description: Version of Slurm to install
required: false
default: 20.11.9
nfs:
type: boolean
description: Install and mount NFS
required: false
default: true
artifacts:
slurm_role:
file: grycap.slurm
type: tosca.artifacts.AnsibleGalaxy.role
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/slurm_wn_install.yml
inputs:
slurm_front_end_ip: { get_property: [ SELF, front_end_ip ] }
slurm_public_front_end_ip: { get_property: [ SELF, public_front_end_ip ] }
slurm_nfs: { get_property: [ SELF, nfs ] }
slurm_version: { get_property: [ SELF, version ] }
tosca.nodes.indigo.LRMS.FrontEnd.Slurm:
derived_from: tosca.nodes.indigo.LRMS.FrontEnd
properties:
version:
type: string
description: Version of Slurm to install
required: false
default: 20.11.9
nfs:
type: boolean
description: Install and mount NFS
required: false
default: true
wn_num:
type: integer
description: Number of WNs
required: false
default: -1
artifacts:
slurm_role:
file: grycap.slurm
type: tosca.artifacts.AnsibleGalaxy.role
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
capabilities:
lrms:
type: tosca.capabilities.indigo.LRMS.Slurm
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/slurm_fe_install.yml
inputs:
wn_num: { get_property: [ SELF, wn_num ] }
wn_ips: { get_property: [ SELF, wn_ips ] }
front_end_ip: { get_attribute: [ HOST, private_address, 0 ] }
max_number_of_nodes: { get_property: [ wn_node, wn, max_instances] }
slurm_nfs: { get_property: [ SELF, nfs ] }
slurm_version: { get_property: [ SELF, version ] }
tosca.nodes.indigo.LRMS.WorkerNode.HTCondor:
derived_from: tosca.nodes.indigo.LRMS.WorkerNode
properties:
nfs:
type: boolean
description: Install and mount NFS
required: false
default: true
htcondor_password:
type: string
description: Store HTCondor credentials
required: true
default: changeme
htcondor_version:
type: string
description: Version of HTCondor to install
required: false
default: "23.x"
artifacts:
posix_collection:
file: ansible.posix
type: tosca.artifacts.AnsibleGalaxy.collection
htcondor_role:
file: grycap.htcondor
type: tosca.artifacts.AnsibleGalaxy.role
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/htcondor_wn_install.yml
inputs:
htcondor_front_end_ip: { get_property: [ SELF, front_end_ip ] }
htcondor_public_front_end_ip: { get_property: [ SELF, public_front_end_ip ] }
htcondor_nfs: { get_property: [ SELF, nfs ] }
htcondor_password: { get_property: [ SELF, htcondor_password ] }
htcondor_version: { get_property: [ SELF, htcondor_version] }
tosca.nodes.indigo.LRMS.FrontEnd.HTCondor:
derived_from: tosca.nodes.indigo.LRMS.FrontEnd
properties:
nfs:
type: boolean
description: Install and mount NFS
required: false
default: true
htcondor_password:
type: string
description: Store HTCondor credentials
required: true
default: changeme
htcondor_version:
type: string
description: Version of HTCondor to install
required: false
default: "23.x"
wn_num:
type: integer
description: Number of WNs
required: false
default: -1
artifacts:
posix_collection:
file: ansible.posix
type: tosca.artifacts.AnsibleGalaxy.collection
htcondor_role:
file: grycap.htcondor
type: tosca.artifacts.AnsibleGalaxy.role
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
capabilities:
lrms:
type: tosca.capabilities.indigo.LRMS.HTCondor
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/lrms/htcondor_fe_install.yml
inputs:
front_end_ip: { get_attribute: [ HOST, private_address, 0 ] }
htcondor_nfs: { get_property: [ SELF, nfs ] }
htcondor_password: { get_property: [ SELF, htcondor_password ] }
htcondor_version: { get_property: [ SELF, htcondor_version] }
tosca.nodes.indigo.GalaxyPortal:
derived_from: tosca.nodes.WebServer
properties:
admin_email:
type: string
description: email of the admin user
default: [email protected]
required: false
admin_password:
type: string
description: Password of the admin user
default: adminpass
required: false
dns_name:
type: string
description: DNS name of the portal
required: false
default: ''
version:
type: string
description: Version of the Galaxy portal
required: false
default: 'latest'
brand:
type: string
description: Brand of the Galaxy portal
required: false
default: 'Galaxy'
requirements:
- lrms:
capability: tosca.capabilities.indigo.LRMS
node: tosca.nodes.indigo.LRMS.FrontEnd
relationship: tosca.relationships.HostedOn
capabilities:
endpoint:
type: tosca.capabilities.indigo.Endpoint
artifacts:
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role:
file: grycap.galaxy
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/galaxy/galaxy_portal_install.yml
inputs:
galaxy_admin: { get_property: [ SELF, admin_email ] }
galaxy_admin_password: { get_property: [ SELF, admin_password ] }
galaxy_lrms: { get_property: [ SELF, lrms, type ] }
galaxy_server_name: { get_attribute: [ HOST, private_address, 0 ] }
galaxy_dns_name: { get_property: [ SELF, dns_name ] }
galaxy_image_version: { get_property: [ SELF, version ] }
galaxy_brand: { get_property: [ SELF, brand ] }
tosca.nodes.indigo.GalaxyWN:
derived_from: tosca.nodes.SoftwareComponent
properties:
front_end_ip:
type: string
description: IP of the Front-End node
required: true
artifacts:
nfs_role:
file: grycap.nfs
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role:
file: grycap.galaxy
type: tosca.artifacts.AnsibleGalaxy.role
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/galaxy/galaxy_wn_configure.yml
inputs:
galaxy_front_end_ip: { get_property: [ SELF, front_end_ip ] }
tosca.nodes.indigo.Pulsar:
derived_from: tosca.nodes.SoftwareComponent
properties:
mq_user:
type: string
description: User name for the message queue
required: true
mq_password:
type: string
description: Password for the message queue
required: true
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
- lrms:
capability: tosca.capabilities.indigo.LRMS