khuedoan-homelab/external/Makefile

24 lines
419 B
Makefile
Raw Normal View History

.POSIX:
default: apply
~/.terraform.d/credentials.tfrc.json:
terraform login
terraform.tfvars:
cp terraform.tfvars.example ${@}
nvim ${@}
.terraform.lock.hcl: ~/.terraform.d/credentials.tfrc.json versions.tf terraform.tfvars
terraform init
touch ${@}
namespaces:
ansible-playbook namespaces.yml
2021-12-23 00:18:09 +07:00
plan: .terraform.lock.hcl
terraform plan
apply: .terraform.lock.hcl namespaces
terraform apply -auto-approve