-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathcustom_types.yaml
3011 lines (2886 loc) · 98.2 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: INDIGO/DEEP
template_name: indigo_custom_types
template_version: 5.0.0
description: Contains the custom types definition as defined by the INDIGO & DEEP team
data_types:
tosca.datatypes.Root:
description: The TOSCA root Data Type all other TOSCA base Data Types derive from.
tosca.datatypes.indigo.User:
derived_from: tosca.datatypes.Root
description: The Tosca User type is a complex TOSCA data Type used when describing a user account, allowing to set the user name, the user GUID (optional) and user SSH public key (optional).
properties:
os_user_name:
type: string
description: The username
required: false
os_user_guid:
type: integer
description: The optional user guid
required: false
os_user_add_to_sudoers:
type: boolean
description: Add user to sudoers
required: false
os_user_ssh_public_key:
type: string
description: The optional user ssh public key
required: 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
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
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
infiniband_support:
type: boolean
required: false
sgx:
type: boolean
required: no
sgx_epc_size:
type: scalar-unit.size
required: no
tosca.capabilities.indigo.LRMS:
derived_from: tosca.capabilities.Container
properties:
type:
type: string
required: true
constraints:
- valid_values: [ local, torque, slurm, sge, condor, mesos, kubernetes ]
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.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.MesosMaster:
derived_from: tosca.capabilities.Container
tosca.capabilities.indigo.MesosSlave:
derived_from: tosca.capabilities.Container
tosca.capabilities.indigo.Container.Docker:
derived_from: tosca.capabilities.Container.Docker
properties:
num_cpus:
type: float
required: false
constraints:
- greater_or_equal: 0.0
num_gpus:
type: integer
required: false
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.indigo.Container.Application.Docker.Chronos:
derived_from: tosca.capabilities.Root
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.Deployment.Image.Container.Docker:
derived_from: tosca.artifacts.Deployment.Image
description: Docker Container Image
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:
tosca.relationships.indigo.GlusterFS.AttachesTo:
derived_from: tosca.relationships.AttachesTo
interfaces:
Configure:
pre_configure_source:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/glusterfs/glusterfs_install.yml
inputs:
gluster_brick_dir: { get_property: [ TARGET, brick_dir ] }
gluster_brick_name: { get_property: [ TARGET, brick_name ] }
gluster_mount_dir: { get_property: [ SELF, location ] }
gluster_wn_ips: { get_property: [ TARGET, wn_ips ] }
gluster_fe_ip: { get_property: [ TARGET, fe_ip ] }
gluster_options: { get_property: [ TARGET, options ] }
gluster_replicas: { get_property: [ TARGET, replicas ] }
tosca.relationships.indigo.OneDataStorage.AttachesTo:
derived_from: tosca.relationships.AttachesTo
interfaces:
Configure:
pre_configure_source:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/onedata/oneclient_install.yml
inputs:
onedata_location: { get_property: [ SELF, location ] }
onedata_token: { get_property: [ TARGET, credential, token ] }
oneprovider_host: { get_property: [ TARGET, oneprovider_host ] }
dataspace: { get_property: [ TARGET, dataspace ] }
onezone_endpoint: { get_property: [ TARGET, onezone_endpoint ] }
node_types:
# Standard types defined in TOSCA with interfaces to install
tosca.nodes.Database.MySQL:
derived_from: tosca.nodes.Database
metadata:
icon: /images/mysql-db.png
requirements:
- host:
capability: tosca.capabilities.Container
relationship: tosca.relationships.HostedOn
node: tosca.nodes.DBMS.MySQL
interfaces:
Standard:
create:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mysql/mysql_db_configure.yml
inputs:
db_password: { get_property: [ SELF, password ] }
db_name: { get_property: [ SELF, name ] }
db_user: { get_property: [ SELF, user ] }
db_root_password: ""
db_access_host: "%"
tosca.nodes.DBMS.MySQL:
derived_from: tosca.nodes.DBMS
metadata:
icon: /images/mysql-server.png
properties:
port:
type: integer
description: reflect the default MySQL server port
default: 3306
root_password:
type: string
# MySQL requires a root_password for configuration
required: true
capabilities:
# Further constrain the ‘host’ capability to only allow MySQL databases
host:
type: tosca.capabilities.Container
valid_source_types: [ tosca.nodes.Database.MySQL ]
interfaces:
Standard:
create: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mysql/mysql_install.yml
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mysql/mysql_configure.yml
inputs:
root_password: { get_property: [ SELF, root_password ] }
port: { get_property: [ SELF, port ] }
tosca.nodes.WebServer.Apache:
derived_from: tosca.nodes.WebServer
metadata:
icon: /images/apache.png
interfaces:
Standard:
create:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/apache/apache_install.yml
start:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/apache/apache_start.yml
# INDIGO non normative types
tosca.nodes.indigo.Database.MySQL:
derived_from: tosca.nodes.Database.MySQL
metadata:
icon: /images/mysql-db-indigo.png
properties:
access_host:
type: string
required: no
default: "%"
root_password:
type: string
required: true
requirements:
- host:
capability: tosca.capabilities.Container
relationship: tosca.relationships.HostedOn
node: tosca.nodes.DBMS.MySQL
interfaces:
Standard:
create:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/mysql/mysql_db_configure.yml
inputs:
db_password: { get_property: [ SELF, password ] }
db_name: { get_property: [ SELF, name ] }
db_user: { get_property: [ SELF, user ] }
db_root_password: { get_property: [ SELF, root_password ] }
db_access_host: { get_property: [ SELF, access_host ] }
tosca.nodes.indigo.Compute:
derived_from: tosca.nodes.Compute
metadata:
icon: /images/compute.png
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 associate to the Compute instance
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]
artifacts:
os_users_role:
file: indigo-dc.os_users
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/os/configure_users.yml
inputs:
os_users: { get_property: [ SELF, os_users] }
tosca.nodes.indigo.ZabbixAgent:
derived_from: tosca.nodes.SoftwareComponent
metadata:
icon: /images/zabbix.png
properties:
zabbix_server:
type: string
required: yes
zabbix_server_port:
type: tosca.datatypes.network.PortDef
required: no
default: 10051
zabbix_server_metadata:
type: string
required: yes
artifacts:
zabbix_agent_role:
file: indigo-dc.zabbix-agent,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/zabbix/zabbix_agent_install.yml
inputs:
zabbix_server: { get_property: [ SELF, zabbix_server ] }
zabbix_server_port: { get_property: [ SELF, zabbix_server_port ] }
zabbix_server_metadata: { get_property: [ SELF, zabbix_server_metadata ] }
tosca.nodes.indigo.GalaxyPortal:
derived_from: tosca.nodes.WebServer
metadata:
icon: /images/galaxy.png
properties:
admin_email:
type: string
description: email of the admin user
default: [email protected]
required: false
admin_api_key:
type: string
description: key to access the API with admin role
default: not_very_secret_api_key
required: false
user:
type: string
description: username to launch the galaxy daemon
default: galaxy
required: false
install_path:
type: string
description: path to install the galaxy tool
default: /home/galaxy/galaxy
required: false
export_dir:
type: string
description: path to store galaxy data
default: /export
required: false
version:
type: string
description: galaxy version to install
default: master
required: false
instance_description:
type: string
description: galaxy instance description
default: "INDIGO Galaxy test"
instance_key_pub:
type: string
description: galaxy instance ssh public key
default: your_ssh_public_key
flavor:
type: string
description: name of the Galaxy flavor
required: false
default: galaxy-no-tools
reference_data:
type: boolean
description: Install Reference data
default: true
required: false
requirements:
- lrms:
capability: tosca.capabilities.indigo.LRMS
node: tosca.nodes.indigo.LRMS.FrontEnd
relationship: tosca.relationships.HostedOn
artifacts:
nfs_role:
file: indigo-dc.nfs,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role:
file: indigo-dc.galaxycloud,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_install.yml
inputs:
galaxy_install_path: { get_property: [ SELF, install_path ] }
galaxy_user: { get_property: [ SELF, user ] }
galaxy_admin: { get_property: [ SELF, admin_email ] }
galaxy_admin_api_key: { get_property: [ SELF, admin_api_key ] }
galaxy_lrms: { get_property: [ SELF, lrms, type ] }
galaxy_version: { get_property: [ SELF, version ] }
galaxy_instance_description: { get_property: [ SELF, instance_description ] }
galaxy_instance_key_pub: { get_property: [ SELF, instance_key_pub ] }
export_dir: { get_property: [ SELF, export_dir ] }
galaxy_flavor: { get_property: [ SELF, flavor ] }
get_refdata: { get_property: [ SELF, reference_data ] }
tosca.nodes.indigo.GalaxyPortalAndStorage:
derived_from: tosca.nodes.indigo.GalaxyPortal
properties:
storage_encryption:
type: boolean
description: Enable storage encryption using Vault to store secrets and LUKS to encrypt
default: false
required: true
vault_url:
type: string
description: Hashicorp Vault server url
default: vault_url
required: false
vault_wrapping_token:
type: string
description: Vault Wrapping token to write secret
default: not_a_valid_token
required: false
vault_secret_path:
type: string
description: Vault path to store secret
default: path_to_secret
required: false
vault_secret_key:
type: string
description: Vault secret key name
default: secret_key_name
required: false
wn_ips:
type: list
entry_schema:
type: string
description: List of IPs of the WNs
required: false
default: []
artifacts:
nfs_role:
file: indigo-dc.nfs,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_os_role:
file: indigo-dc.galaxycloud-os,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role:
file: indigo-dc.galaxycloud,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_os_install.yml
inputs:
storage_encryption: { get_property: [ SELF, storage_encryption ] }
vault_url: { get_property: [ SELF, vault_url ] }
vault_wrapping_token: { get_property: [ SELF, vault_wrapping_token ] }
vault_secret_path: { get_property: [ SELF, vault_secret_path ] }
vault_secret_key: { get_property: [ SELF, vault_secret_key ] }
wn_ips: { get_property: [ SELF, wn_ips ] }
galaxy_install_path: { get_property: [ SELF, install_path ] }
galaxy_user: { get_property: [ SELF, user ] }
galaxy_admin: { get_property: [ SELF, admin_email ] }
galaxy_admin_api_key: { get_property: [ SELF, admin_api_key ] }
galaxy_lrms: { get_property: [ SELF, lrms, type ] }
galaxy_version: { get_property: [ SELF, version ] }
galaxy_instance_description: { get_property: [ SELF, instance_description ] }
galaxy_instance_key_pub: { get_property: [ SELF, instance_key_pub ] }
export_dir: { get_property: [ SELF, export_dir ] }
galaxy_flavor: { get_property: [ SELF, flavor ] }
get_refdata: { get_property: [ SELF, reference_data ] }
tosca.nodes.indigo.GalaxyPortalFastConfig:
derived_from: tosca.nodes.indigo.GalaxyPortalAndStorage
artifacts:
nfs_role:
file: indigo-dc.nfs,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_os_role:
file: indigo-dc.galaxycloud-os,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role_fastconfig:
file: indigo-dc.galaxycloud-fastconfig,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_fastconfig.yml
inputs:
storage_encryption: { get_property: [ SELF, storage_encryption ] }
vault_url: { get_property: [ SELF, vault_url ] }
vault_wrapping_token: { get_property: [ SELF, vault_wrapping_token ] }
vault_secret_path: { get_property: [ SELF, vault_secret_path ] }
vault_secret_key: { get_property: [ SELF, vault_secret_key ] }
wn_ips: { get_property: [ SELF, wn_ips ] }
galaxy_install_path: { get_property: [ SELF, install_path ] }
galaxy_user: { get_property: [ SELF, user ] }
galaxy_admin: { get_property: [ SELF, admin_email ] }
galaxy_admin_api_key: { get_property: [ SELF, admin_api_key ] }
galaxy_lrms: { get_property: [ SELF, lrms, type ] }
galaxy_version: { get_property: [ SELF, version ] }
galaxy_instance_description: { get_property: [ SELF, instance_description ] }
galaxy_instance_key_pub: { get_property: [ SELF, instance_key_pub ] }
export_dir: { get_property: [ SELF, export_dir ] }
galaxy_flavor: { get_property: [ SELF, flavor ] }
get_refdata: { get_property: [ SELF, reference_data ] }
tosca.nodes.indigo.GalaxyWN:
derived_from: tosca.nodes.SoftwareComponent
metadata:
icon: /images/galaxy.png
properties:
front_end_ip:
type: string
description: IP of the Front-End node
required: true
export_dir:
type: string
description: path to store galaxy data
default: /export
required: true
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_wn_configure.yml
inputs:
galaxy_front_end_ip: { get_property: [ SELF, front_end_ip ] }
export_dir: { get_property: [ SELF, export_dir ] }
tosca.nodes.indigo.GalaxyWNCVMFS:
derived_from: tosca.nodes.indigo.GalaxyWN
properties:
storage_encryption:
type: boolean
description: Install api when storage is encrypted
default: false
reference_data:
type: boolean
description: Install Reference data
default: true
required: true
refdata_cvmfs_configuration:
type: string
description: Configure cvmfs or load preconfigured repository
default: 'cvmfs_preconfigured'
required: false
refdata_cvmfs_repository_name:
type: string
description: CernVM-FS repository name
default: 'elixir-italy.galaxy.refdata'
required: false
refdata_cvmfs_server_url:
type: string
description: CernVM-FS server, replica or stratum-zero
default: 'server_url'
required: false
refdata_cvmfs_key_file:
type: string
description: CernVM-FS public key
default: 'not_a_key'
required: false
refdata_cvmfs_proxy_url:
type: string
description: CernVM-FS proxy url
default: 'DIRECT'
required: false
refdata_cvmfs_proxy_port:
type: integer
description: CernVM-FS proxy port
default: 80
required: false
refdata_dir:
type: string
description: path to store galaxy reference data
default: /cvmfs
required: false
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.Compute
relationship: tosca.relationships.HostedOn
artifacts:
os_role:
file: indigo-dc.galaxycloud-os,master
type: tosca.artifacts.AnsibleGalaxy.role
cvmfs_role:
file: indigo-dc.cvmfs-client,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_wn_configure_cvmfs.yml
inputs:
galaxy_front_end_ip: { get_property: [ SELF, front_end_ip ] }
export_dir: { get_property: [ SELF, export_dir ] }
storage_encryption: { get_property: [ SELF, storage_encryption ] }
get_refdata: { get_property: [ SELF, reference_data ] }
refdata_cvmfs_configuration: { get_property: [ SELF, refdata_cvmfs_configuration ] }
refdata_cvmfs_repository_name: { get_property: [ SELF, refdata_cvmfs_repository_name ] }
refdata_cvmfs_server_url: { get_property: [ SELF, refdata_cvmfs_server_url ] }
refdata_cvmfs_key_file: { get_property: [ SELF, refdata_cvmfs_key_file ] }
refdata_cvmfs_proxy_url: { get_property: [ SELF, refdata_cvmfs_proxy_url ] }
refdata_cvmfs_proxy_port: { get_property: [ SELF, refdata_cvmfs_proxy_port ] }
refdata_dir: { get_property: [ SELF, refdata_dir ] }
tosca.nodes.indigo.GalaxyShedTool:
derived_from: tosca.nodes.WebApplication
metadata:
icon: /images/galaxy-toolshed.png
properties:
flavor:
type: string
description: name of the Galaxy flavor
required: true
default: galaxy-no-tools
admin_api_key:
type: string
description: key to access the API with admin role
default: not_very_secret_api_key
required: false
version:
type: string
description: galaxy version installed
default: master
required: false
reference_data:
type: boolean
description: Install Reference data
default: true
required: false
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.indigo.GalaxyPortal
relationship: tosca.relationships.HostedOn
artifacts:
galaxy_role:
file: indigo-dc.galaxycloud-tools,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_tools_configure.yml
inputs:
galaxy_flavor: { get_property: [ SELF, flavor ] }
galaxy_admin_api_key: { get_property: [ HOST, admin_api_key ] }
galaxy_version: { get_property: [ SELF, version ] }
get_refdata: { get_property: [ SELF, reference_data ] }
tosca.nodes.indigo.GalaxyReferenceData:
derived_from: tosca.nodes.WebApplication
metadata:
icon: /images/galaxydata.png
properties:
reference_data:
type: boolean
description: Install Reference data
default: true
required: true
refdata_cvmfs_configuration:
type: string
description: Configure cvmfs or load preconfigured repository
default: 'cvmfs_preconfigured'
required: false
refdata_cvmfs_repository_name:
type: string
description: CernVM-FS repository name
default: 'elixir-italy.galaxy.refdata'
required: false
refdata_cvmfs_server_url:
type: string
description: CernVM-FS server, replica or stratum-zero
default: 'server_url'
required: false
refdata_cvmfs_key_file:
type: string
description: CernVM-FS public key
default: 'not_a_key'
required: false
refdata_cvmfs_proxy_url:
type: string
description: CernVM-FS proxy url
default: 'DIRECT'
required: false
refdata_cvmfs_proxy_port:
type: integer
description: CernVM-FS proxy port
default: 80
required: false
refdata_dir:
type: string
description: path to store galaxy reference data
default: /cvmfs
required: false
flavor:
type: string
description: name of the Galaxy flavor
required: true
default: galaxy-no-tools
requirements:
- host:
capability: tosca.capabilities.Container
node: tosca.nodes.indigo.GalaxyPortal
relationship: tosca.relationships.HostedOn
artifacts:
cvmfs_role:
file: indigo-dc.cvmfs-client,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role:
file: indigo-dc.galaxycloud-refdata,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_redfata_configure.yml
inputs:
get_refdata: { get_property: [ SELF, reference_data ] }
refdata_cvmfs_configuration: { get_property: [ SELF, refdata_cvmfs_configuration ] }
refdata_cvmfs_repository_name: { get_property: [ SELF, refdata_cvmfs_repository_name ] }
refdata_cvmfs_server_url: { get_property: [ SELF, refdata_cvmfs_server_url ] }
refdata_cvmfs_key_file: { get_property: [ SELF, refdata_cvmfs_key_file ] }
refdata_cvmfs_proxy_url: { get_property: [ SELF, refdata_cvmfs_proxy_url ] }
refdata_cvmfs_proxy_port: { get_property: [ SELF, refdata_cvmfs_proxy_port ] }
refdata_dir: { get_property: [ SELF, refdata_dir ] }
galaxy_flavor: { get_property: [ SELF, flavor ] }
tosca.nodes.indigo.GalaxyPortalDocker:
derived_from: tosca.nodes.indigo.GalaxyPortalAndStorage
artifacts:
nfs_role:
file: indigo-dc.nfs,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_os_role:
file: indigo-dc.galaxycloud-os,master
type: tosca.artifacts.AnsibleGalaxy.role
docker_role:
file: indigo-dc.docker,master
type: tosca.artifacts.AnsibleGalaxy.role
galaxy_role_docker:
file: indigo-dc.galaxycloud_docker,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/galaxy/galaxy_docker.yml
inputs:
storage_encryption: { get_property: [ SELF, storage_encryption ] }
vault_url: { get_property: [ SELF, vault_url ] }
vault_wrapping_token: { get_property: [ SELF, vault_wrapping_token ] }
vault_secret_path: { get_property: [ SELF, vault_secret_path ] }
vault_secret_key: { get_property: [ SELF, vault_secret_key ] }
galaxy_install_path: { get_property: [ SELF, install_path ] }
galaxy_user: { get_property: [ SELF, user ] }
galaxy_admin: { get_property: [ SELF, admin_email ] }
galaxy_admin_api_key: { get_property: [ SELF, admin_api_key ] }
galaxy_lrms: { get_property: [ SELF, lrms, type ] }
galaxy_version: { get_property: [ SELF, version ] }
galaxy_instance_description: { get_property: [ SELF, instance_description ] }
galaxy_instance_key_pub: { get_property: [ SELF, instance_key_pub ] }
export_dir: { get_property: [ SELF, export_dir ] }
galaxy_flavor: { get_property: [ SELF, flavor ] }
get_refdata: { get_property: [ SELF, reference_data ] }
tosca.nodes.indigo.TeskAPI:
derived_from: tosca.nodes.WebServer
properties:
auth_mode:
type: string
description: Authentication mode
default: noauth
required: false
mount_ftp:
description: Flag used to specify that the ftp has to be enabled
type: boolean
required: false
default: true
teskmaster_ftp_url:
type: string
description: ftp url
default: 'ftp://ftp_url'
required: false
teskmaster_ftp_user:
type: string
description: ftp username
default: 'user'
required: false
teskmaster_ftp_password:
type: string
description: ftp password
default: 'password'
required: false
requirements:
- lrms:
capability: tosca.capabilities.indigo.LRMS
node: tosca.nodes.indigo.LRMS.FrontEnd
relationship: tosca.relationships.HostedOn
artifacts:
galaxy_role:
file: indigo-dc.tesk,master
type: tosca.artifacts.AnsibleGalaxy.role
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/ga4gh_cloud_apis/tesk_install.yml
inputs:
auth_mode: { get_property: [ SELF, auth_mode ] }
mount_ftp: { get_property: [ SELF, mount_ftp ] }
teskmaster_ftp_url: { get_property: [ SELF, teskmaster_ftp_url ] }
teskmaster_ftp_user: { get_property: [ SELF, teskmaster_ftp_user ] }
teskmaster_ftp_password: { get_property: [ SELF, teskmaster_ftp_password ] }
tosca.nodes.indigo.ElasticCluster:
derived_from: tosca.nodes.SoftwareComponent
metadata:
icon: /images/ec3.png
properties:
secret_token:
type: string
description: Token to access CLUES web interface
default: not_very_secret_token
required: false
deployment_id:
type: string
description: ID of the deployment of this elastic cluster in the orchestrator
required: false