From 36162b861b73ddd1a11c40548c569451e51c57c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sat, 30 Dec 2023 12:48:43 +0200 Subject: [PATCH] Remove Hashicorp Vault password --- init.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/init.sh b/init.sh index 85fde78..fd8e993 100755 --- a/init.sh +++ b/init.sh @@ -138,7 +138,6 @@ if [ ! -f ~/.ansible/vars.yml ]; then openssl rand -base64 64 | tr -d '\n' | head -c 64 > ~/.ansible/vault.yml ANSIBLE_VAULT_SECRET=$(<~/.ansible/vault.yml) - HASHICORP_VAULT_SECRET=$(openssl rand -base64 64 | tr -d '\n' | head -c 64) echo "---" > ~/.ansible/vars.yml echo "hostname: $HOSTNAME" >> ~/.ansible/vars.yml @@ -148,7 +147,6 @@ if [ ! -f ~/.ansible/vars.yml ]; then echo " secret: $ANSIBLE_VAULT_SECRET" >> ~/.ansible/vars.yml echo " hashicorp:" >> ~/.ansible/vars.yml echo " domain: $VAULT_DOMAIN" >> ~/.ansible/vars.yml - echo " password: $HASHICORP_VAULT_SECRET" >> ~/.ansible/vars.yml /opt/ansible/bin/ansible-vault encrypt --vault-password-file ~/.ansible/vault.yml ~/.ansible/vars.yml > /dev/null fi