make: mejores recetas
This commit is contained in:
parent
a4968434c7
commit
ac48dd3db6
1 changed files with 10 additions and 12 deletions
22
GNUmakefile
22
GNUmakefile
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue