-
Notifications
You must be signed in to change notification settings - Fork 4
/
parameters.tf
95 lines (90 loc) · 2.39 KB
/
parameters.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# I'd like to be able to turn off/on DNS+TLS
# as necessary to speed deployment when iterating
# data "coder_parameter" "dns" {
# name = "dns"
# display_name = "dns"
# description = "Create a DNS wildcard + TLS Certificate (adds 30-40 seconds)"
# default = true
# type = "bool"
# icon = "https://github.com/cncf/artwork/blob/master/projects/coredns/icon/solid-color/coredns-icon-solid-color.png?raw=true"
# # option {
# # name = "True"
# # value = true
# # }
# # option {
# # name = "False"
# # value = false
# # }
# }
data "coder_parameter" "container-image" {
name = "container-image"
display_name = "Container Image"
description = "The container image to use for the workspace"
default = var.default_container_image
icon = "https://raw.githubusercontent.com/matifali/logos/main/docker.svg"
mutable = true
}
data "coder_parameter" "git-url" {
name = "git-url"
display_name = "Git URL"
description = "The Git URL to checkout for this workspace"
default = var.default_git_url
mutable = true
# icon = "https://raw.githubusercontent.com/matifali/logos/main/docker.svg"
}
data "coder_parameter" "org-url" {
name = "org-url"
display_name = "Orgfile url"
description = "The Orgfile URL to load into emacs"
default = var.default_org_url
mutable = true
# icon = "https://raw.githubusercontent.com/matifali/logos/main/docker.svg"
}
# data "coder_parameter" "cpu" {
# name = "cpu"
# display_name = "CPU"
# description = "The number of CPU cores"
# default = "4"
# icon = "/icon/memory.svg"
# mutable = true
# option {
# name = "4 Cores"
# value = "4"
# }
# option {
# name = "8 Cores"
# value = "8"
# }
# option {
# name = "16 Cores"
# value = "16"
# }
# option {
# name = "32 Cores"
# value = "32"
# }
# }
# data "coder_parameter" "memory" {
# name = "memory"
# display_name = "Memory"
# description = "The amount of memory in GB"
# default = "8"
# icon = "/icon/memory.svg"
# mutable = true
# option {
# name = "8 GB"
# value = "8"
# }
# option {
# name = "16 GB"
# value = "16"
# }
# option {
# name = "32 GB"
# value = "32"
# }
# option {
# name = "64 GB"
# value = "64"
# }
# }