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