mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 13:08:52 +07:00
27 lines
456 B
Makefile
27 lines
456 B
Makefile
.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
|
|
|
|
plan: .terraform.lock.hcl
|
|
terraform plan
|
|
|
|
apply: .terraform.lock.hcl namespaces
|
|
terraform apply -auto-approve
|
|
|
|
format:
|
|
terraform fmt -recursive .
|