Skip to content

Commit a68e50e

Browse files
committed
terraform: Add a Kconfig menu item to set the IaaC tool path
Users need to be able to override the Infrastructure as Code tool binary path when it's installed in non-default locations. The hidden TERRAFORM_BINARY_PATH option made this difficult because it wasn't visible in the configuration interface and used hard-coded paths that don't match typical package manager installations. This change promotes the option to a visible menu item with improved defaults that match common installation paths. The Terraform default now uses /usr/bin/terraform instead of /usr/local/bin/terraform, aligning with standard package manager behavior. The new help text guides users on when and how to override the path for custom installations. Generated-by: Claude AI Signed-off-by: Chuck Lever <[email protected]>
1 parent 0a55881 commit a68e50e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

terraform/Kconfig

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,14 @@ config TERRAFORM_USE_OPENTOFU
6262
endchoice
6363

6464
config TERRAFORM_BINARY_PATH
65-
string
66-
default "/usr/local/bin/terraform" if TERRAFORM_USE_TERRAFORM
65+
string "Path to Terraform or OpenTofu binary"
66+
default "/usr/bin/terraform" if TERRAFORM_USE_TERRAFORM
6767
default "/usr/local/bin/tofu" if TERRAFORM_USE_OPENTOFU
6868
output yaml
69+
help
70+
Specify the path to the Terraform or OpenTofu binary. The default
71+
is set based on your Infrastructure as Code tool choice above.
72+
Override this if your binary is installed in a different location,
73+
such as /usr/bin/terraform or /usr/bin/tofu.
6974

7075
endif # TERRAFORM

0 commit comments

Comments
 (0)