khuedoan-homelab/external/Makefile

24 lines
399 B
Makefile
Raw Normal View History

.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
2021-12-23 00:18:09 +07:00
plan: .terraform.lock.hcl
tofu plan
2021-12-23 00:18:09 +07:00
apply: .terraform.lock.hcl namespaces
tofu apply -auto-approve