- Notifications
You must be signed in to change notification settings - Fork1.1k
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 from1 commit
41f2de08a1f50f38a0251157d13bf5484ec82bbc2a0fc48c4420c352e3be0473aea6661d2f797File 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
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| 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" | ||
| } | ||
| resource "coder_script" "script1" { | ||
| agent_id = coder_agent.dev1.id | ||
| display_name = "Foobar Script 1" | ||
| script = "echo foobar 1" | ||
| run_on_start = true | ||
| } | ||
| resource "coder_script" "script2" { | ||
| agent_id = coder_agent.dev1.id | ||
| display_name = "Foobar Script 2" | ||
| script = "echo foobar 2" | ||
| run_on_start = true | ||
| } | ||
| resource "coder_script" "script3" { | ||
| agent_id = coder_agent.dev2.id | ||
| display_name = "Foobar Script 3" | ||
| script = "echo foobar 3" | ||
| run_on_start = true | ||
| } | ||
| 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.