Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tosca-templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Diego Ciangottini
tosca-templates
Commits
bacb69da
Commit
bacb69da
authored
4 years ago
by
dciangot
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://baltig.infn.it/infn-cloud/tosca-templates
parents
80edd1ac
e391d61e
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
012_jupyter_vm.yaml
+23
-17
23 additions, 17 deletions
012_jupyter_vm.yaml
with
23 additions
and
17 deletions
012_jupyter_vm.yaml
+
23
−
17
View file @
bacb69da
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment