deploy-hacktivism-goa.sh (924B)
1 #!/bin/sh 2 # Deploy event-currency GOA exchange (regional-currency flow + systemd). 3 # Prerequisites on koopa: 4 # 1) ./run-container-koopa.sh # systemd container, port 9011 5 # 2) this script 6 # Inventory: ansible_connection=podman 7 set -eu 8 cd "$(dirname "$0")" 9 export PATH="${HOME}/venv-ansible/bin:${PATH}" 10 export ANSIBLE_HOST_KEY_CHECKING=False 11 if [ ! -f vault_pass.txt ]; then 12 echo unused > vault_pass.txt 13 fi 14 15 # Refuse obvious non-systemd targets early 16 if ! podman exec taler-hacktivism-exchange-ansible cat /proc/1/comm 2>/dev/null | grep -qx systemd; then 17 echo "error: container PID1 is not systemd. Run ./run-container-koopa.sh first." >&2 18 exit 1 19 fi 20 21 exec ansible-playbook -v \ 22 --limit taler-hacktivism-exchange-ansible \ 23 -e @inventories/host_vars/taler-hacktivism-exchange-ansible/public.yml \ 24 -e @inventories/host_vars/taler-hacktivism-exchange-ansible/secrets.yml \ 25 playbooks/setup-hacktivism-goa.yml