Skip to content

Commit 534b27b

Browse files
committed
fix: format OCI template code
1 parent 97b5fad commit 534b27b

File tree

1 file changed

+10
-10
lines changed
  • registry/coder/templates/oci-linux

1 file changed

+10
-10
lines changed

registry/coder/templates/oci-linux/main.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ data "cloudinit_config" "user_data" {
309309
content_type = "text/cloud-config"
310310

311311
content = templatefile("${path.module}/cloud-init/cloud-config.yaml.tftpl", {
312-
hostname = local.hostname
313-
linux_user = local.linux_user
314-
ssh_public_key = var.ssh_public_key
312+
hostname = local.hostname
313+
linux_user = local.linux_user
314+
ssh_public_key = var.ssh_public_key
315315
coder_agent_token = coder_agent.dev[0].token
316316
})
317317
}
@@ -321,9 +321,9 @@ data "cloudinit_config" "user_data" {
321321
content_type = "text/x-shellscript"
322322

323323
content = templatefile("${path.module}/cloud-init/userdata.sh.tftpl", {
324-
hostname = local.hostname
325-
linux_user = local.linux_user
326-
ssh_public_key = var.ssh_public_key
324+
hostname = local.hostname
325+
linux_user = local.linux_user
326+
ssh_public_key = var.ssh_public_key
327327
coder_agent_token = coder_agent.dev[0].token
328328
})
329329
}
@@ -413,9 +413,9 @@ resource "oci_core_subnet" "subnet" {
413413

414414
# Home disk
415415
resource "oci_core_volume" "home_volume" {
416-
compartment_id = var.compartment_ocid
417-
display_name = "coder-${data.coder_workspace.me.id}-home"
418-
size_in_gbs = data.coder_parameter.home_size.value
416+
compartment_id = var.compartment_ocid
417+
display_name = "coder-${data.coder_workspace.me.id}-home"
418+
size_in_gbs = data.coder_parameter.home_size.value
419419
availability_domain = data.oci_identity_availability_domains.ads.availability_domains[0].name
420420
}
421421

@@ -449,7 +449,7 @@ resource "oci_core_instance" "dev" {
449449

450450
metadata = {
451451
ssh_authorized_keys = var.ssh_public_key
452-
user_data = base64encode(data.cloudinit_config.user_data.rendered)
452+
user_data = base64encode(data.cloudinit_config.user_data.rendered)
453453
}
454454

455455
freeform_tags = {

0 commit comments

Comments
 (0)