Linux / Home Lab

Terraform or OpenTofu for the home lab?

Why OpenTofu is a practical default for a self-hosted home lab already familiar with Terraform.

I’ve been using Infrastructure as Code increasingly heavily in my home lab. Between Proxmox, cloud resources, networking and configuration handed off to Ansible, the obvious question is: Terraform or OpenTofu?

The slightly boring answer is that, for normal use, they are remarkably similar.

From Terraform to OpenTofu

OpenTofu was forked from Terraform after HashiCorp changed Terraform’s licence from MPL 2.0 to the Business Source License. OpenTofu retained the MPL 2.0 licence and is independently governed within the Linux Foundation ecosystem.

For everyday infrastructure code, the important point is compatibility. The same HCL configurations and Terraform providers generally work, while familiar operations become:

terraform init   # tofu init
terraform plan   # tofu plan
terraform apply  # tofu apply

That is not much of a learning curve.

CapabilityOpenTofuTerraform
HCL / .tfYesYes
Terraform providersLargely compatibleNative
Familiar plan/apply workflowYesYes
Open-source licenceMPL 2.0BSL 1.1
Open governanceYesIBM/HashiCorp
Built-in state encryptionYesNo equivalent in the CLI
HCP Terraform / StacksNoYes

Why OpenTofu for a home lab?

For my environment, there is little reason not to choose it. I am not buying HCP Terraform services, do not need Terraform Stacks, and have no enterprise requirement for HashiCorp support. Those are all areas where staying with Terraform can make sense.

OpenTofu is genuinely open source, has open governance, and is actively developing functionality of its own. Examples include native state encryption, for_each for provider configurations, and the -exclude option.

There is also a more philosophical reason. A home lab is where I want to build skills and automation that are not unnecessarily dependent on a vendor. If two tools solve essentially the same problem, I generally favour the one whose format, code, and governance remain open.

What about learning Terraform for work?

This is probably the strongest argument for Terraform, but learning OpenTofu is also learning the Terraform style of Infrastructure as Code. You still write HCL, use providers, manage state, build modules, and worry about remote-state locking and access control.

The knowledge transfers.

A clear infrastructure boundary

In my repository, the intended boundary is straightforward:

OpenTofu creates infrastructure and produces inventory data; Ansible configures the resulting machines.

That separation also gives each change a predictable safety check:

tofu fmt -check
tofu validate
tofu plan -out=tfplan

# Only in the explicit deployment job:
tofu apply tfplan

Keeping that boundary prevents the Infrastructure as Code layer from gradually becoming a collection of remote-exec scripts pretending to be configuration management.

The decision

For a new home-lab deployment in 2026, I am choosing OpenTofu.

Terraform is certainly not dead. If I were using HCP Terraform or working somewhere standardised around HashiCorp tooling, I would happily use Terraform. For my own infrastructure, OpenTofu gives me the workflow I want, compatibility with the ecosystem I already know, and a cleaner open-source story.

Sometimes a technology choice does not need to be more complicated than that.

tofu plan it is.