32 lines
700 B
Makefile
32 lines
700 B
Makefile
.PHONY: clean-certs
|
|
clean-certs:
|
|
find certs/ -type f ! -name '.gitignore' -delete
|
|
|
|
.PHONY: clean-tfstate
|
|
clean-tfstate:
|
|
rm -f terraform.tfstate
|
|
|
|
.PHONY: tofu
|
|
tofu: clean-certs
|
|
tofu -chdir=opentofu/cs10-base init
|
|
tofu -chdir=opentofu/cs10-base apply -auto-approve
|
|
|
|
.PHONY: destroy
|
|
destroy: clean-tfstate
|
|
tofu -chdir=opentofu/cs10-base destroy -auto-approve
|
|
|
|
.PHONY: init
|
|
init: destroy tofu
|
|
|
|
.PHONY: regenerate-certs
|
|
regenerate-certs: clean-certs
|
|
ansible-playbook -i inventories/staging/ deploy.yaml --tags common --vault-password-file .pass
|
|
|
|
.PHONY: deploy
|
|
deploy:
|
|
ansible-playbook --vault-pass-file=.pass deploy.yaml
|
|
|
|
.PHONY: reset
|
|
reset:
|
|
ansible-playbook --vault-pass-file=.pass reset.yaml
|
|
|