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:
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue