-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
62 lines (54 loc) · 1.36 KB
/
variables.tf
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
variable "workshop_name" {
description = "What's the name of the workshop"
type = string
}
variable "workshop_domain" {
description = "What will be this workshop's domain. Used for letsencrypt."
type = string
}
variable "workshop_contact" {
description = "Workshop contact email. Used for letsencrypt."
type = string
}
variable "instance_region" {
description = "DigitalOcean resource region"
type = string
default = "tor1"
}
variable "instance_size" {
description = "DigitalOcean instance size"
type = string
# You can find droplet sizes here: https://slugs.do-api.dev/
default = "s-1vcpu-2gb"
}
variable "tag_owner" {}
variable "tag_event" {}
variable "tag_purpose" {
type = string
default = "jupyterhub"
}
variable "do_token" {}
# JupyterHub
variable "jupyterhub_admin" {
description = "This GitHub username will be admin of the JupyterHub server"
type = string
}
variable "workshop_requirements_url" {
description = "A URL to a Python requirements.txt file for dependencies to be installed on the system"
type = string
}
variable "github_client_id" {}
variable "github_client_secret" {}
# Not managed by Terraform
data "digitalocean_project" "workshops" {
name = "R&D Workshops"
}
# Tags
locals {
tags = [
var.workshop_name,
var.tag_owner,
var.tag_purpose,
var.tag_event
]
}