Skip to content
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

Global MTT Config #768

Open
ribab opened this issue Dec 1, 2018 · 0 comments
Open

Global MTT Config #768

ribab opened this issue Dec 1, 2018 · 0 comments

Comments

@ribab
Copy link
Contributor

ribab commented Dec 1, 2018

This idea is to have optional system/local config files for MTT. These config files are to set default options that can be overrided by either pyclient command-line arguments or by MTTDefaults in the INI file.

The file structure could look something like this:

File in /etc/mtt/mtt.cfg or ~/.mtt/mtt.cfg
verbose=True
skip-sections=*Database
plugin-dir=/path/to/proprietary/plugins

Also another idea to go along with this is a list of environment variables for MTT to load by default before starting (but only load the env vars that don't already exist), like:

File in /etc/mtt/mtt.env
MTT_ARGS="--verbose --some-other-arg"
HEADNODE_NAME=coolest_system_ever
MTT_DATABASE_IP=192.168.0.1
@ribab ribab changed the title /etc/mtt/mtt.cfg, ~/.mtt/mtt.cfg Global MTT Config Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant