- Notifications
You must be signed in to change notification settings - Fork914
fix(provisioner): handle multiple agents, apps, scripts and envs#13741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
41f2de0
8a1f50f
38a0251
157d13b
f5484ec
82bbc2a
0fc48c4
420c352
e3be047
3aea666
1d2f797
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
terraform { | ||
required_providers { | ||
coder = { | ||
source = "coder/coder" | ||
version = "0.22.0" | ||
} | ||
} | ||
} | ||
resource "coder_agent" "dev1" { | ||
os = "linux" | ||
arch = "amd64" | ||
} | ||
resource "coder_agent" "dev2" { | ||
os = "linux" | ||
arch = "amd64" | ||
} | ||
# app1 is for testing subdomain default. | ||
resource "coder_app" "app1" { | ||
agent_id = coder_agent.dev1.id | ||
slug = "app1" | ||
# subdomain should default to false. | ||
# subdomain = false | ||
} | ||
# app2 tests that subdomaincan be true, and that healthchecks work. | ||
resource "coder_app" "app2" { | ||
agent_id = coder_agent.dev1.id | ||
slug = "app2" | ||
subdomain = true | ||
healthcheck { | ||
url = "http://localhost:13337/healthz" | ||
interval = 5 | ||
threshold = 6 | ||
} | ||
} | ||
# app3 tests that subdomain can explicitly be false. | ||
resource "coder_app" "app3" { | ||
agent_id = coder_agent.dev2.id | ||
slug = "app3" | ||
subdomain = false | ||
} | ||
resource "null_resource" "dev1" { | ||
depends_on = [ | ||
coder_agent.dev1 | ||
] | ||
} | ||
resource "null_resource" "dev2" { | ||
depends_on = [ | ||
coder_agent.dev2 | ||
] | ||
} |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.