Add recovery make targets

This commit is contained in:
IamTheFij 2023-01-07 14:09:38 -08:00
parent bbe5bfaba4
commit 1ef4b988ac

View File

@ -59,8 +59,16 @@ bootstrap-values: $(VENV) ansible_galaxy
-e "@vault-keys.json" \
./ansible_playbooks/bootstrap-values.yml
.PHONY: recover-consul
recover-consul: $(VENV)
$(VENV)/bin/ansible-playbook ./ansible_playbooks/recover-consul.yaml
.PHONY: recover-nomad
recover-nomad: $(VENV)
$(VENV)/bin/ansible-playbook ./ansible_playbooks/recover-nomad.yaml
.PHONY: unseal-vault
unseal-vault: $(VENV) ansible_galaxy
unseal-vault: $(VENV)
env VIRTUAL_ENV=$(VENV) $(VENV)/bin/ansible-playbook -K -vv \
-e "@vault-keys.json" \
./ansible_playbooks/unseal-vault.yml