Skip to content
Snippets Groups Projects
Commit 9ad35652 authored by Marica Antonacci's avatar Marica Antonacci
Browse files

Add support for letsencrypt staging

parent f36b1d94
No related tags found
No related merge requests found
tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- indigo_custom_types: https://baltig.infn.it/infn-cloud/tosca-types/raw/v2.0.3/tosca_types/applications/jupyter_types.yaml
- indigo_custom_types: https://baltig.infn.it/infn-cloud/tosca-types/raw/v2.1.1/tosca_types/applications/jupyter_types.yaml
description: Run Jupyter on a single VM enabling Notebooks persistence
......@@ -91,6 +91,11 @@ topology_template:
default: ""
description: Email address of certificate management administrator
enable_letsencrypt_staging:
type: boolean
default: false
description: "If set to true, the staging environment will be used. If set to false, the production environment (subject to rate limit) will be used"
ports:
description: Ports to open on the VM
type: map
......@@ -112,7 +117,7 @@ topology_template:
ml_install:
type: tosca.nodes.DODAS.single-node-jupyterhub
properties:
letsencrypt_test: false
letsencrypt_test: { get_input: enable_letsencrypt_staging }
contact_email: { get_input: contact_email }
iam_url: { get_input: iam_url }
iam_subject: { get_input: iam_subject }
......
tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- indigo_custom_types: https://baltig.infn.it/infn-cloud/tosca-types/raw/v2.0.3/tosca_types/infrastructure/kubernetes_types.yaml
- indigo_custom_types: https://baltig.infn.it/infn-cloud/tosca-types/raw/v2.1.1/tosca_types/infrastructure/kubernetes_types.yaml
description: Deploy a single master Kubernetes 1.24.12 cluster
......@@ -10,6 +10,13 @@ topology_template:
inputs:
certificate_type:
required: no
type: string
default: letsencrypt-prod
constraints:
- valid_values: [ 'letsencrypt-prod', 'letsencrypt-staging', 'self-signed' ]
admin_token:
description: Password token for accessing K8s dashboard and grafana dashboard
type: string
......@@ -159,6 +166,7 @@ topology_template:
admin_token: { get_input: admin_token }
enable_gpu: { get_input: enable_gpu }
domain: myip.cloud.infn.it
cert_manager_type: { get_input: certificate_type }
requirements:
- host: k8s_master_server
......
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