From 1eadefe834432e19257157e3f247d01469933cae Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 28 Apr 2023 14:27:09 +0000 Subject: [PATCH] chore: remove login_before_ready from example templates --- examples/templates/aws-ecs-container/main.tf | 1 - examples/templates/aws-linux/main.tf | 1 - examples/templates/aws-windows/main.tf | 7 +++---- examples/templates/azure-linux/main.tf | 7 +++---- examples/templates/do-linux/main.tf | 2 -- examples/templates/docker-with-dotfiles/main.tf | 1 - examples/templates/docker/main.tf | 1 - examples/templates/fly-docker-image/main.tf | 1 - examples/templates/gcp-linux/main.tf | 1 - examples/templates/gcp-vm-container/main.tf | 1 - examples/templates/gcp-windows/main.tf | 1 - examples/templates/kubernetes/main.tf | 1 - 12 files changed, 6 insertions(+), 19 deletions(-) diff --git a/examples/templates/aws-ecs-container/main.tf b/examples/templates/aws-ecs-container/main.tf index dc563a500db86..f07c0925ec018 100644 --- a/examples/templates/aws-ecs-container/main.tf +++ b/examples/templates/aws-ecs-container/main.tf @@ -110,7 +110,6 @@ resource "coder_agent" "coder" { auth = "token" os = "linux" dir = "/home/coder" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e diff --git a/examples/templates/aws-linux/main.tf b/examples/templates/aws-linux/main.tf index 1913786b8f6ce..96d9136dfe758 100644 --- a/examples/templates/aws-linux/main.tf +++ b/examples/templates/aws-linux/main.tf @@ -162,7 +162,6 @@ resource "coder_agent" "main" { arch = "amd64" auth = "aws-instance-identity" os = "linux" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e diff --git a/examples/templates/aws-windows/main.tf b/examples/templates/aws-windows/main.tf index de9ffe5934925..215aaff56f828 100644 --- a/examples/templates/aws-windows/main.tf +++ b/examples/templates/aws-windows/main.tf @@ -156,10 +156,9 @@ data "aws_ami" "windows" { } resource "coder_agent" "main" { - arch = "amd64" - auth = "aws-instance-identity" - os = "windows" - login_before_ready = false + arch = "amd64" + auth = "aws-instance-identity" + os = "windows" } locals { diff --git a/examples/templates/azure-linux/main.tf b/examples/templates/azure-linux/main.tf index 303db69c513c1..ccb934a8b6286 100644 --- a/examples/templates/azure-linux/main.tf +++ b/examples/templates/azure-linux/main.tf @@ -225,10 +225,9 @@ data "coder_workspace" "me" { } resource "coder_agent" "main" { - arch = "amd64" - os = "linux" - auth = "azure-instance-identity" - login_before_ready = false + arch = "amd64" + os = "linux" + auth = "azure-instance-identity" metadata { key = "cpu" diff --git a/examples/templates/do-linux/main.tf b/examples/templates/do-linux/main.tf index 8f753a6dd9a1a..798e5ca106f02 100644 --- a/examples/templates/do-linux/main.tf +++ b/examples/templates/do-linux/main.tf @@ -245,8 +245,6 @@ resource "coder_agent" "main" { os = "linux" arch = "amd64" - login_before_ready = false - metadata { key = "cpu" display_name = "CPU Usage" diff --git a/examples/templates/docker-with-dotfiles/main.tf b/examples/templates/docker-with-dotfiles/main.tf index a5a2609c7168c..f5b2b92747644 100644 --- a/examples/templates/docker-with-dotfiles/main.tf +++ b/examples/templates/docker-with-dotfiles/main.tf @@ -53,7 +53,6 @@ data "coder_parameter" "dotfiles_uri" { resource "coder_agent" "main" { arch = data.coder_provisioner.me.arch os = "linux" - login_before_ready = false startup_script_timeout = 180 env = { "DOTFILES_URI" = data.coder_parameter.dotfiles_uri.value != "" ? data.coder_parameter.dotfiles_uri.value : null } startup_script = <<-EOT diff --git a/examples/templates/docker/main.tf b/examples/templates/docker/main.tf index eac4154b4f46d..ed7b51d2d8519 100644 --- a/examples/templates/docker/main.tf +++ b/examples/templates/docker/main.tf @@ -27,7 +27,6 @@ data "coder_workspace" "me" { resource "coder_agent" "main" { arch = data.coder_provisioner.me.arch os = "linux" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e diff --git a/examples/templates/fly-docker-image/main.tf b/examples/templates/fly-docker-image/main.tf index 294d9d264c289..99c0952e4582e 100644 --- a/examples/templates/fly-docker-image/main.tf +++ b/examples/templates/fly-docker-image/main.tf @@ -277,7 +277,6 @@ resource "coder_app" "code-server" { resource "coder_agent" "main" { arch = data.coder_provisioner.me.arch os = "linux" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e diff --git a/examples/templates/gcp-linux/main.tf b/examples/templates/gcp-linux/main.tf index 483b31440b885..a6d6f86eb0ede 100644 --- a/examples/templates/gcp-linux/main.tf +++ b/examples/templates/gcp-linux/main.tf @@ -79,7 +79,6 @@ resource "coder_agent" "main" { auth = "google-instance-identity" arch = "amd64" os = "linux" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e diff --git a/examples/templates/gcp-vm-container/main.tf b/examples/templates/gcp-vm-container/main.tf index 339fae00b15c3..5a9fc311d9dd8 100644 --- a/examples/templates/gcp-vm-container/main.tf +++ b/examples/templates/gcp-vm-container/main.tf @@ -70,7 +70,6 @@ resource "coder_agent" "main" { arch = "amd64" os = "linux" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e diff --git a/examples/templates/gcp-windows/main.tf b/examples/templates/gcp-windows/main.tf index c7ef3e175c974..ca7c4ff5f73a9 100644 --- a/examples/templates/gcp-windows/main.tf +++ b/examples/templates/gcp-windows/main.tf @@ -80,7 +80,6 @@ resource "coder_agent" "main" { arch = "amd64" os = "windows" - login_before_ready = false } resource "google_compute_instance" "dev" { diff --git a/examples/templates/kubernetes/main.tf b/examples/templates/kubernetes/main.tf index 6f12ee9e31cab..4995913d76f6d 100644 --- a/examples/templates/kubernetes/main.tf +++ b/examples/templates/kubernetes/main.tf @@ -108,7 +108,6 @@ data "coder_workspace" "me" {} resource "coder_agent" "main" { os = "linux" arch = "amd64" - login_before_ready = false startup_script_timeout = 180 startup_script = <<-EOT set -e