make: mejores recetas

This commit is contained in:
Rénich Bon Ćirić 2025-08-06 06:23:38 -06:00
commit ac48dd3db6
Signed by: renich
GPG key ID: BDA314B08CB17657

View file

@ -2,21 +2,20 @@
clean-certs: clean-certs:
find certs/ -type f ! -name '.gitignore' -delete find certs/ -type f ! -name '.gitignore' -delete
.PHONY: clean-tfstate .PHONY: tofu-init
clean-tfstate: tofu-init:
rm -f terraform.tfstate make -C opentofu/ init
.PHONY: tofu .PHONY: tofu-apply
tofu: clean-certs tofu-apply: clean-certs
tofu -chdir=opentofu/ init -upgrade make -C opentofu/ apply
tofu -chdir=opentofu/ apply -auto-approve
.PHONY: destroy .PHONY: tofu-destroy
destroy: clean-tfstate tofu-destroy:
tofu -chdir=opentofu/ destroy -auto-approve make -C opentofu/ destroy
.PHONY: init .PHONY: init
init: destroy tofu init: tofu-destroy tofu-apply
.PHONY: regenerate-certs .PHONY: regenerate-certs
regenerate-certs: clean-certs regenerate-certs: clean-certs
@ -29,4 +28,3 @@ deploy:
.PHONY: reset .PHONY: reset
reset: reset:
ansible-playbook --vault-pass-file=.pass reset.yaml ansible-playbook --vault-pass-file=.pass reset.yaml