New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move common database configuration to this repository #22

Open
preaction opened this Issue Nov 29, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@preaction
Member

preaction commented Nov 29, 2017

We should have all of our database configuration in one place, this repository. This includes the database host, database port, database name, username, and password. This should be configured in the Rexfile, and written into templated configuration files as such:

  1. ~/.cpanstats.cnf - This is already being deployed
  2. ~/etc/container/common.yml - Create a "schema" and "metabase_dbh" object
  3. ~/etc/dbrc - Set the BEAM_PATH and BEAM_MINION (and other) environment variables that involve the database configuration

These should be deployed as part of the cpantesters user to be used by all other programs.

Once this is done, we must go through the other programs and use these instead:

  1. cpantesters-api has service files that need to source the dbrc file
  2. cpantesters-web has service files that need to source the dbrc file
  3. cpantesters-backend has service files that need to source the dbrc file
  4. cpantesters-backend has the original etc/container/common.yml that must be deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment