Files
configpolicy/deploy.sh
Dustin C. Hatch dfc1a36ee5 deploy.sh: Wrapper for deployment scripts
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.
2024-07-02 20:44:29 -05:00

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