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:
~/.cpanstats.cnf - This is already being deployed
~/etc/container/common.yml - Create a "schema" and "metabase_dbh" object
~/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:
cpantesters-api has service files that need to source the dbrc file
cpantesters-web has service files that need to source the dbrc file
cpantesters-backend has service files that need to source the dbrc file
cpantesters-backend has the original etc/container/common.yml that must be deleted
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:
~/.cpanstats.cnf
- This is already being deployed~/etc/container/common.yml
- Create a "schema" and "metabase_dbh" object~/etc/dbrc
- Set theBEAM_PATH
andBEAM_MINION
(and other) environment variables that involve the database configurationThese 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:
etc/container/common.yml
that must be deleted