Rename default agent to "main" instead of "dev" (#3150)

Resolves #3143
This commit is contained in:
Ammar Bandukwala
2022-07-23 20:26:56 +00:00
committed by GitHub
parent 257e52e014
commit f28d14197a
20 changed files with 23 additions and 31 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ data "aws_ami" "ubuntu" {
owners = ["099720109477"] # Canonical
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
arch = "amd64"
auth = "aws-instance-identity"
os = "linux"
+1 -1
View File
@@ -69,7 +69,7 @@ data "aws_ami" "windows" {
}
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
arch = "amd64"
auth = "aws-instance-identity"
os = "windows"
+1 -1
View File
@@ -93,7 +93,7 @@ provider "digitalocean" {
data "coder_workspace" "me" {}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
os = "linux"
arch = "amd64"
}
@@ -35,7 +35,7 @@ provider "docker" {
data "coder_workspace" "me" {
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
arch = var.docker_arch
os = "linux"
startup_script = "code-server --auth none"
@@ -60,7 +60,7 @@ provider "coder" {
data "coder_workspace" "me" {
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
arch = var.step2_arch
os = "linux"
}
@@ -1,6 +1,6 @@
---
name: Develop in Docker with a dotfiles URL
description: Run workspaces on a Docker host using registry images
description: Run workspaces on a Docker host using registry images
tags: [local, docker]
---
@@ -10,7 +10,7 @@ This is an example for deploying workspaces with a prompt for the users' dotfile
## Getting started
Run `coder templates init` and select this template. Follow the instructions that appear.
Run `coder templates init` and select this template. Follow the instructions that appear.
## How it works
@@ -27,7 +27,7 @@ variable "dotfiles_uri" {
default = ""
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
...
startup_script = var.dotfiles_uri != "" ? "/tmp/tmp.coder*/coder dotfiles -y ${var.dotfiles_uri}" : null
}
@@ -37,7 +37,7 @@ variable "dotfiles_uri" {
default = ""
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
arch = "amd64"
os = "linux"
startup_script = var.dotfiles_uri != "" ? "coder dotfiles -y ${var.dotfiles_uri}" : null
+1 -1
View File
@@ -65,7 +65,7 @@ provider "coder" {
data "coder_workspace" "me" {
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
arch = var.step2_arch
os = "linux"
startup_script = <<EOF
+1 -1
View File
@@ -45,7 +45,7 @@ resource "google_compute_disk" "root" {
}
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
auth = "google-instance-identity"
arch = "amd64"
os = "linux"
+1 -1
View File
@@ -35,7 +35,7 @@ data "google_compute_default_service_account" "default" {
data "coder_workspace" "me" {
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
auth = "google-instance-identity"
arch = "amd64"
os = "linux"
+1 -1
View File
@@ -45,7 +45,7 @@ resource "google_compute_disk" "root" {
}
}
resource "coder_agent" "dev" {
resource "coder_agent" "main" {
auth = "google-instance-identity"
arch = "amd64"
os = "windows"