Add secrets file to environment setup

This commit is contained in:
Matthew Lopez 2023-12-26 14:12:45 -05:00
parent 8699f07763
commit 1d094276d1
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E
2 changed files with 18 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
# Local environment variables (used for secrets)
/environment/*.local.env
# Important secrets
/secrets.txt

View File

@ -109,6 +109,21 @@ else
info "Skipping Wii U IP address."
fi
# Create a list of important secrets
cat >"$git_base/secrets.txt" <<EOF
Pretendo Network server secrets
===============================
MinIO root username: minio_pretendo
MinIO root password: $minio_secret_key
Mongo Express username: mongo_express_pretendo
Mongo Express password: $mongo_express_password
Postgres username: postgres_pretendo
Postgres password: $postgres_password
Server IP address: $server_ip
Wii U IP address: ${wiiu_ip:-(not set)}
EOF
success "Successfully set up environment."
# Some things need to be updated with the new environment variables and secrets,