Skip to content
Snippets Groups Projects
Commit bacb69da authored by dciangot's avatar dciangot
Browse files
parents 80edd1ac e391d61e
Branches master
No related tags found
No related merge requests found
......@@ -3,11 +3,11 @@ tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- indigo_custom_types: https://baltig.infn.it/infn-cloud/tosca-types/raw/master/custom_types.yaml
description: TOSCA template for a persistent Jupyter VM
description: Run Jupyter on a single VM enabling Notebooks persistence in Amazon S3
metadata:
display_name: Persistent Jupyter VM
#icon: https://paas.cloud.infn.it/public/images/spark.png
display_name: Jupyter with persistence for Notebooks
icon: https://paas.cloud.infn.it/public/images/jupyter_s3.png
allowed_groups: "beta-testers,developers,orchestrator-admin"
topology_template:
......@@ -16,35 +16,37 @@ topology_template:
num_cpus:
type: integer
description: "Number of VM vCPUs [int]"
default: 4
mem_size:
type: string
description: "VM memory size [str]"
default: "8 GB"
server_image:
type: string
jupyter_token:
type: string
default: "testme"
description: "Token for Jupyter login [str]"
required: yes
persistence:
type: string
description: "Choose the s3 mount mode: 's3-goofys' (suggested) or 's3-contents'"
default: "CHANGEME"
description: "Choose the s3 mount mode: s3-goofys (suggested) or s3-contents"
required: yes
constraints:
- valid_values: [ "s3-goofys", "s3-contents", "local" ]
s3_access_id:
type: string
default: "CHANGEME"
description: "S3 access user id [str]"
required: yes
s3_access_key:
type: string
default: "CHANGEME"
description: "S3 access key [str]"
required: yes
s3_bucket:
type: string
default: "CHANGEME"
required: yes
s3_endpoint:
type: string
default: "http://CHANGEME:9000"
s3_mount_prefix:
type: string
default: ""
description: "S3 endpoint (http://endpoint:9000)"
required: yes
node_templates:
......@@ -59,7 +61,7 @@ topology_template:
s3_access_key: { get_input: s3_access_key }
s3_bucket: { get_input: s3_bucket }
s3_endpoint: { get_input: s3_endpoint }
s3_mount_prefix: { get_input: s3_mount_prefix }
s3_mount_prefix: ""
requirements:
- host: vm_server
......@@ -90,4 +92,8 @@ topology_template:
label:
value: Jupyter
jupyter_endpoint:
<<<<<<< HEAD
value: { concat: [ 'https://', get_attribute: [ vm_server, public_address, 0 ], ':8888' ] }
=======
value: { concat: [ 'http://', get_attribute: [ vm_server, public_address, 0 ], ':8888' ] }
>>>>>>> e391d61e785a6681826436d8ed561cfa4a433aad
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment