Skip to content

Commit

Permalink
Merge pull request #219 from grycap/devel
Browse files Browse the repository at this point in the history
Add new galaxy params
  • Loading branch information
micafer authored Dec 4, 2024
2 parents 78efb0b + 8e8d8b1 commit c9fb344
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
12 changes: 12 additions & 0 deletions custom_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,16 @@ node_types:
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
Expand All @@ -941,6 +951,8 @@ node_types:
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
Expand Down
16 changes: 14 additions & 2 deletions templates/galaxy.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
tosca_definitions_version: tosca_simple_yaml_1_0

imports:
- grycap_custom_types: https://raw.githubusercontent.com/grycap/tosca/main/custom_types.yaml
- grycap_custom_types: https://raw.githubusercontent.com/grycap/tosca/devel/custom_types.yaml

description: Deploy a Galaxy Server using a local LRMS.

metadata:
template_version: "1.1.0"
template_version: "1.2.0"
template_name: Galaxy
display_name: Deploy a Galaxy portal
icon: images/galaxy.png
Expand All @@ -27,6 +27,16 @@ topology_template:
type: string
description: Password of the Galaxy admin user
default: adminpass
brand:
type: string
description: Brand of the Galaxy portal
default: Galaxy
version:
type: string
description: Version of the Galaxy portal
default: '24.1'
constraints:
- valid_values: [ '24.1' ]

dns_name:
type: string
Expand All @@ -51,6 +61,8 @@ topology_template:
admin_email: { get_input: admin_email }
admin_password: { get_input: admin_password }
dns_name: { get_input: dns_name }
brand: { get_input: brand }
version: { get_input: version }
requirements:
- lrms: local_lrms
- host: simple_node
Expand Down
2 changes: 1 addition & 1 deletion templates/simple-node-disk.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tosca_definitions_version: tosca_simple_yaml_1_0

imports:
- grycap_custom_types: https://raw.githubusercontent.com/grycap/tosca/main/custom_types.yaml
- grycap_custom_types: https://raw.githubusercontent.com/grycap/tosca/devel/custom_types.yaml

description: >
Deploy a compute node getting the IP and SSH credentials to access via ssh with an extra HD disk.
Expand Down

0 comments on commit c9fb344

Please sign in to comment.