Arif Ali
bb166ecc96
* do_innodb_resolution.sh: mostly now works, the timing between update-status and the add-instance may need to be tweaked still * vault.sh: use juju status json to grab the IPs for the vault units * check_juju.sh: add debug to the default status * check_avail_pci.sh: add hypervisor_name to the output to make it easier to grab multiple nodes * get_passwords.sh: add extra password for collection
20 lines
500 B
Bash
Executable File
20 lines
500 B
Bash
Executable File
#!/bin/bash
|
|
|
|
vault_file="vault-secrets.txt"
|
|
|
|
juju run -a vault -- sudo systemctl restart vault
|
|
|
|
IPS=$(juju status --format json | jq -r '.applications.vault.units | to_entries[].value."public-address"')
|
|
|
|
for ip in $IPS
|
|
do
|
|
echo export VAULT_ADDR=http://${ip}:8200;
|
|
export VAULT_ADDR=http://${ip}:8200;
|
|
for vault_key in $(head -n3 ${vault_file} | awk '{print $4}');do
|
|
echo vault operator unseal -tls-skip-verify $vault_key
|
|
vault operator unseal -tls-skip-verify $vault_key
|
|
done
|
|
done
|
|
|
|
|