fix: coder_agent arch
This commit is contained in:
parent
953b461955
commit
abf78882e6
1 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ data "coder_parameter" "fleet_version" {
|
|||
name = "fleet_version"
|
||||
display_name = "Fleet version"
|
||||
description = "Which version of Fleet should be installed?"
|
||||
default = "1.24.137"
|
||||
default = "1.28.117"
|
||||
type = "string"
|
||||
mutable = true
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ data "coder_workspace" "me" {
|
|||
}
|
||||
|
||||
resource "coder_agent" "dev" {
|
||||
arch = "amd64"
|
||||
arch = startswith(data.coder_parameter.instance_type.value, "cax") ? "arm64" : "amd64"
|
||||
os = "linux"
|
||||
|
||||
startup_script = data.coder_parameter.dotfiles_uri.value != "" ? "coder dotfiles -y ${data.coder_parameter.dotfiles_uri.value}" : null
|
||||
|
|
Loading…
Reference in a new issue