The `deploy.sh` script ensures the execution environment is correct by configuring the Ansible Vault secret, unlocking the `rbw` vault, and requesting an SSH client certificate. It then runs the specified end-to-end deployment script from the `deploy` directory.
17 lines
242 B
Bash
17 lines
242 B
Bash
#!/bin/sh
|
|
# vim: set ts=4 :
|
|
|
|
eval $(ssh-agent)
|
|
trap 'ssh-agent -k' INT TERM QUIT EXIT
|
|
|
|
set -a
|
|
. ./.env
|
|
SSHCA_SERVER=https://sshca.pyrocufflink.blue
|
|
set +a
|
|
|
|
virsh uri || exit
|
|
rbw unlock || exit
|
|
sshca-cli user login || exit
|
|
|
|
. deploy/"${1}".sh
|