mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 14:54:32 +07:00
21fac43e57
OpenTofu is a drop-in replacement for Terraform, so aside from changing the binary, it only needs some minor adjustments.
24 lines
399 B
Makefile
24 lines
399 B
Makefile
.POSIX:
|
|
|
|
default: apply
|
|
|
|
~/.terraform.d/credentials.tfrc.json:
|
|
tofu login
|
|
|
|
terraform.tfvars:
|
|
cp terraform.tfvars.example ${@}
|
|
nvim ${@}
|
|
|
|
.terraform.lock.hcl: ~/.terraform.d/credentials.tfrc.json versions.tf terraform.tfvars
|
|
tofu init
|
|
touch ${@}
|
|
|
|
namespaces:
|
|
ansible-playbook namespaces.yml
|
|
|
|
plan: .terraform.lock.hcl
|
|
tofu plan
|
|
|
|
apply: .terraform.lock.hcl namespaces
|
|
tofu apply -auto-approve
|