Add ability to select opentofu instead of terraform#66
Merged
chucklever merged 2 commits intomainfrom Nov 26, 2025
Merged
Conversation
The gen_tfvars playbook was failing with an undefined variable when the user forgot to run the new "make cloud-config" step. Add a helpful error message. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Add comprehensive support for OpenTofu as an alternative to Terraform for infrastructure provisioning. OpenTofu is an open-source fork of Terraform maintained by the Linux Foundation that provides full compatibility with Terraform configurations while offering a community-driven development model. The implementation adds a Kconfig choice between Terraform and OpenTofu with automatic binary path configuration. The install_terraform role now handles installation of either tool based on user selection, downloading from appropriate sources. All Ansible tasks using the cloud.terraform.terraform and terraform_output modules now use the binary_path parameter to invoke the correct tool. Users can select their preferred tool via menuconfig and the system handles all necessary configuration automatically through extra_vars.yaml. Default versions are Terraform 1.2.3 and OpenTofu 1.6.0, both configurable via Ansible variables. Generated-by: Claude AI Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
terraform is becoming more and more proprietary. We'd like to keep kdevops based on as much open source code as is practically. Fortunately, there is an open source alternative to terraform: OpenTofu. Add a Kconfig setting that allows users to select the use of either terraform or opentofu to handle cloud provisioning. For now the default remains "use terraform".