configpolicy/deploy.sh

20 lines
304 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
kubectl get node > /dev/null || exit
script=deploy/"${1}".sh
shift
. "${script}"