From de867dadbcc3c69d97acf96bf3e86d11295eea39 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Thu, 4 Apr 2024 22:54:05 +0100 Subject: Bring repo up-to-date with current prod config --- Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1b9b4dd..21f2c63 100644 --- a/Makefile +++ b/Makefile @@ -3,17 +3,29 @@ # # SPDX-License-Identifier: AGPL-3.0-only -.PHONY: check lint staging prod +.PHONY: check staging prod lint staging-fresh prod-fresh check: make lint make staging staging: - ansible-playbook --inventory inventory/staging.ini playbook.yaml + ansible-playbook --forks 1 --inventory inventory/staging.ini playbook.yaml prod: - ansible-playbook --inventory inventory/prod.ini playbook.yaml + ansible-playbook --forks 1 --inventory inventory/prod.ini playbook.yaml lint: precious --ascii lint --all + +staging-fresh: + ~/Documents/libcloud/recreate xmpp-continuous-nonprod + ANSIBLE_SSH_ARGS="-F /tmp/early_ssh_config" ansible-playbook --forks 1 \ + --inventory inventory/staging.ini playbook.yaml + +prod-fresh: + echo "You are about to recreate PROD. Sleeping for 60s to let this sink in" + sleep 60 + ~/Documents/libcloud/recreate xmpp-prod + ANSIBLE_SSH_ARGS="-F /tmp/early_ssh_config" ansible-playbook --forks 1 \ + --inventory inventory/prod.ini playbook.yaml -- cgit v1.2.3