ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
20 stars 21 forks source link

Consider switching strategy for getting config info #470

Closed nathanlcarlson closed 6 years ago

nathanlcarlson commented 6 years ago

Currently esg_init.py is executed at the end of the bootstrapper. esg_init is a list of variables and some logic for determining variables. The variables are then written to esg_config.yaml. esg_config.yaml is read by each module that requires some configuration information.

This could be simplified by creating a dictionary to store config values as a variable in esg_init.py (or rename to esg_config.py). This config variable can then be used by other modules by being imported.

Investigate this approach

nathanlcarlson commented 6 years ago

Going to close this as this is suggestive of a larger scale re-design and can be taken on when there is time to spend on that.