This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Init, unseal and authorize the OpenBao machine charm. | |
| # https://canonical-openbao.readthedocs-hosted.com/en/latest/how-to/unseal_machine/ | |
| set -euo pipefail | |
| usage() { | |
| cat <<EOF | |
| Usage: $0 [-m model] [-u unit] [-a app] [-k keys_file] [-A] [-S] [-h] | |
| -m juju model (default: current model) | |
| -u unit to unseal, e.g. openbao/2 or 2 (default: <app>/leader) |