Skip to content

Commit

Permalink
fix: migrate metabase (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
moroine authored Nov 13, 2024
1 parent d607cc8 commit 370e1b8
Show file tree
Hide file tree
Showing 5 changed files with 926 additions and 923 deletions.
2 changes: 1 addition & 1 deletion .bin/scripts/get-vault-password-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readonly ROOT_DIR="$(dirname "${BIN_DIR}")"
readonly VAULT_DIR="${ROOT_DIR}/.infra/vault"
readonly VAULT_FILE="${VAULT_DIR}/vault.yml"

DOCUMENT_CONTENT=$(op document get .vault-password-bal --vault "mna-vault-passwords-common" || echo "")
DOCUMENT_CONTENT=$(op --account mission-apprentissage document get .vault-password-bal --vault "mna-vault-passwords-common" || echo "")
vault_password_file="${VAULT_DIR}/.vault-password.gpg"
previous_vault_password_file="${VAULT_DIR}/.vault-password-previous.gpg"

Expand Down
4 changes: 2 additions & 2 deletions .bin/scripts/run-playbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function runPlaybook() {
local ansible_extra_opts=()
if [[ -z "${ANSIBLE_BECOME_PASS:-}" ]]; then
if [[ $* != *"pass"* ]]; then
local become_pass=$(op read op://Private/${PRODUCT_NAME}-$ENV_FILTER/password 2> /dev/null);
local become_pass=$(op --account mission-apprentissage read op://Private/${PRODUCT_NAME}-$ENV_FILTER/password 2> /dev/null);
if [ -z $become_pass ]; then
echo "Si vous avez 1password CLI, il est possible de récupérer le password automatiquement"
echo "Pour cela, ajouter le dans le vault "Private" l'item ${PRODUCT_NAME}-$ENV_FILTER avec le champs password"
Expand All @@ -30,7 +30,7 @@ function runPlaybook() {

if [[ -z "${ANSIBLE_REMOTE_USER:-}" ]]; then
if [[ $* != *"--user"* ]]; then
local username=$(op read op://Private/${PRODUCT_NAME}-$ENV_FILTER/username 2> /dev/null);
local username=$(op --account mission-apprentissage read op://Private/${PRODUCT_NAME}-$ENV_FILTER/username 2> /dev/null);
if [ -z $username ]; then
echo "Si vous avez 1password CLI, il est possible de récupérer le username automatiquement"
echo "Pour cela, ajouter le dans le vault "Private" l'item ${PRODUCT_NAME}-$ENV_FILTER avec le champs username"
Expand Down
2 changes: 1 addition & 1 deletion .infra/docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ services:

metabase:
<<: *default
image: metabase/metabase:v0.46.6.4
image: metabase/metabase:v0.51.2
deploy:
<<: *deploy-default
resources:
Expand Down
Loading

0 comments on commit 370e1b8

Please sign in to comment.