summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2024-04-04 22:54:05 +0100
committerMatthew Fennell <matthew@fennell.dev>2024-04-04 22:54:05 +0100
commitde867dadbcc3c69d97acf96bf3e86d11295eea39 (patch)
tree2962ef65772790097581f19a2af9b12ac30087e4 /Makefile
parentd29a60b1afec942fe4f7ca7baa95d870afaae83e (diff)
Bring repo up-to-date with current prod config
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
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