mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
9edceef0bf
This pull request introduces support for external workspace management, allowing users to register and manage workspaces that are provisioned and managed outside of the Coder. Depends on: https://github.com/coder/terraform-provider-coder/pull/424 * GET /api/v2/init-script - Gets the agent initialization script * By default, it returns a script for Linux (amd64), but with query parameters (os and arch) you can get the init script for different platforms * GET /api/v2/workspaces/{workspace}/external-agent/{agent}/credentials - Gets credentials for an external agent **(enterprise)** * Updated queries to filter workspaces/templates by the has_external_agent field
22 lines
368 B
Terraform
22 lines
368 B
Terraform
terraform {
|
|
required_providers {
|
|
coder = {
|
|
source = "coder/coder"
|
|
version = ">=2.0.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
data "coder_provisioner" "me" {}
|
|
data "coder_workspace" "me" {}
|
|
data "coder_workspace_owner" "me" {}
|
|
|
|
resource "coder_agent" "dev1" {
|
|
os = "linux"
|
|
arch = "amd64"
|
|
}
|
|
|
|
resource "coder_external_agent" "dev1" {
|
|
agent_id = coder_agent.dev1.token
|
|
}
|