diff --git a/redeploy.sh b/redeploy.sh new file mode 100755 index 0000000..9f56533 --- /dev/null +++ b/redeploy.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -xe + +[[ -z $1 ]] && echo "must provide service path" && exit 1 +pushd $1 +podman run --interactive --rm -v $PWD:/data quay.io/coreos/butane --files-dir /data --pretty --strict < service.bu > service.ign +tofu state rm libvirt_volume.data 2>/dev/null || echo "data volume not provisioned ... continuing" +tofu destroy +tofu apply +popd