ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | Submodules | README | LICENSE

setup-pixel-borg.sh (532B)


      1 #!/bin/bash
      2 
      3 set -eu
      4 
      5 if [ -z ${PIXEL_BORG_KEY:-} ]
      6 then
      7     echo "You need to set the PIXEL_BORG_KEY in your environment before running this script (see admin-log/pixel/03-borg.txt)"
      8     exit 1
      9 fi
     10 ansible-playbook \
     11     --extra-vars PIXEL_BORG_KEY="$PIXEL_BORG_KEY" \
     12     --inventory inventories/default \
     13     --limit "${1:-spec}" \
     14     --user root \
     15     playbooks/pixel-borg.yml
     16 mv borg-repokey/*/home/borg/borg-repo.key .
     17 rm -rf borg-repokey/
     18 echo "Make sure to back up the borg-repo.key to admin-log/pixel/borg-repo.key"
     19 exit 0