primer commit

This commit is contained in:
Rénich Bon Ćirić 2025-08-06 05:45:11 -06:00
commit 864b3e4008
Signed by: renich
GPG key ID: BDA314B08CB17657
105 changed files with 3185 additions and 0 deletions

32
GNUmakefile Normal file
View file

@ -0,0 +1,32 @@
.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