Skip to content

Commit 9b50f9d

Browse files
committed
fixup! chore(dogfood): move coder-envbuilder template under VCS control
1 parent a2733a1 commit 9b50f9d

File tree

2 files changed

+8
-46
lines changed

2 files changed

+8
-46
lines changed

dogfood/coder-envbuilder/main.tf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ variable "CODER_TEMPLATE_MESSAGE" {
3030
type = string
3131
}
3232

33-
resource "coderd_template" "dogfood" {
33+
resource "coderd_template" "coder-envbuilder" {
3434
name = "coder-envbuilder"
3535
display_name = "Write Coder on Coder using Envbuilder"
3636
description = "Write Coder on Coder using a workspace built by Envbuilder."
@@ -42,10 +42,13 @@ resource "coderd_template" "dogfood" {
4242
message = var.CODER_TEMPLATE_MESSAGE
4343
directory = var.CODER_TEMPLATE_DIR
4444
active = true
45-
tf_vars = [{
46-
# clusters/dogfood-v2/coder/provisioner/configs/values.yaml#L191-L194
47-
"envbuilder_cache_dockerconfigjson_path" = "/home/coder/envbuilder-cache-dockerconfig.json"
48-
}]
45+
tf_vars = [
46+
{
47+
# clusters/dogfood-v2/coder/provisioner/configs/values.yaml#L191-L194
48+
name = "envbuilder_cache_dockerconfigjson_path"
49+
value = "/home/coder/envbuilder-cache-dockerconfig.json"
50+
}
51+
]
4952
}
5053
]
5154
acl = {

dogfood/coder/main.tf

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -73,44 +73,3 @@ resource "coderd_template" "dogfood" {
7373
time_til_dormant_autodelete_ms = 7776000000
7474
time_til_dormant_ms = 8640000000
7575
}
76-
77-
resource "coderd_template" "dogfood" {
78-
name = var.CODER_TEMPLATE_NAME
79-
display_name = "Write Coder on Coder"
80-
description = "The template to use when developing Coder on Coder!"
81-
icon = "/emojis/1f3c5.png"
82-
organization_id = "703f72a1-76f6-4f89-9de6-8a3989693fe5"
83-
versions = [
84-
{
85-
name = var.CODER_TEMPLATE_VERSION
86-
message = var.CODER_TEMPLATE_MESSAGE
87-
directory = var.CODER_TEMPLATE_DIR
88-
active = true
89-
}
90-
]
91-
acl = {
92-
groups = [{
93-
id = data.coderd_organization.default.id
94-
role = "use"
95-
}]
96-
users = [{
97-
id = data.coderd_user.machine.id
98-
role = "admin"
99-
}]
100-
}
101-
activity_bump_ms = 10800000
102-
allow_user_auto_start = true
103-
allow_user_auto_stop = true
104-
allow_user_cancel_workspace_jobs = false
105-
auto_start_permitted_days_of_week = ["friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday"]
106-
auto_stop_requirement = {
107-
days_of_week = ["sunday"]
108-
weeks = 1
109-
}
110-
default_ttl_ms = 28800000
111-
deprecation_message = null
112-
failure_ttl_ms = 604800000
113-
require_active_version = true
114-
time_til_dormant_autodelete_ms = 7776000000
115-
time_til_dormant_ms = 8640000000
116-
}

0 commit comments

Comments
 (0)