-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from IQSS/75-password-provisioning
75 password provisioning
- Loading branch information
Showing
7 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,12 @@ if [ ! -s "${SECRETS_DIR}/api/key" ]; then | |
exit 126 | ||
fi | ||
|
||
# Load dataverseAdmin password if present | ||
if [ -s "${SECRETS_DIR}/admin/password" ]; then | ||
echo "Loading admin password from secret file." | ||
ADMIN_PASSWORD=`cat ${SECRETS_DIR}/admin/password` | ||
fi | ||
|
||
# Drop the Postgres credentials into .pgpass | ||
echo "${POSTGRES_SERVER}:*:*:${POSTGRES_USER}:`cat ${SECRETS_DIR}/db/password`" > ${HOME_DIR}/.pgpass | ||
chmod 0600 ${HOME_DIR}/.pgpass | ||
|
@@ -41,7 +47,7 @@ sed -i -e "s#localhost:8080#${DATAVERSE_SERVICE_HOST}:${DATAVERSE_SERVICE_PORT}# | |
sed -i -e "s#[email protected]#${CONTACT_MAIL}#" data/dv-root.json | ||
sed -i -e "s#[email protected]#${CONTACT_MAIL}#" data/user-admin.json | ||
# 2c) Use script(s) to bootstrap the instance. | ||
./setup-all.sh --insecure | ||
./setup-all.sh --insecure -p="${ADMIN_PASSWORD}" | ||
|
||
# 4.) Configure Solr location | ||
curl -sS -X PUT -d "${SOLR_K8S_HOST}:8983" "${DATAVERSE_URL}/api/admin/settings/:SolrHostColonPort" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ POSTGRES_DATABASE=${POSTGRES_DATABASE:-${POSTGRES_USER}} | |
MAIL_SERVER=${MAIL_SERVER:-postfix} | ||
CONTACT_MAIL=${CONTACT_MAIL:-"[email protected]"} | ||
ADMIN_MAIL=${ADMIN_MAIL:-"Dataverse on K8S <[email protected]>"} | ||
ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin1} | ||
|
||
# System properties based Dataverse configuration options | ||
# (Exporting needed as they cannot be seen by `env` otherwise) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
As of this release (4.16) you should be aware that the default | ||
`dataverseAdmin` password is no longer *admin*, but *admin1*. As | ||
IQSS/dataverse-ansible does the same, let's be consistent. See #75 for details. |
This file contains 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
This file contains 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
This file contains 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