primer commit
This commit is contained in:
commit
864b3e4008
105 changed files with 3185 additions and 0 deletions
32
GNUmakefile
Normal file
32
GNUmakefile
Normal 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
|
||||
|
||||
Loading…
Reference in a new issue