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

Add a global config file, rename the user config #307

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

mdellweg
Copy link
Member

This will read the global (/etc/pulp/cli_config.toml) first and merge
with the user local ones (settings.toml, cli_config.toml) in that order.
Creating and editing config files default to cli_config now.

fixes #290
fixes #293

@mdellweg mdellweg requested a review from ggainey July 16, 2021 09:14
@mdellweg mdellweg added this to the 0.11.0 milestone Jul 16, 2021
@mdellweg mdellweg force-pushed the refactor_settings branch from d383e3d to 2edc4cb Compare July 16, 2021 09:28
@daviddavis
Copy link
Contributor

LGTM. I wonder if we should call this file cli.toml since toml is a config file format? Sort of like cli_conf.conf vs cli.conf.

@mdellweg
Copy link
Member Author

mdellweg commented Jul 16, 2021

LGTM. I wonder if we should call this file cli.toml since toml is a config file format? Sort of like cli_conf.conf vs cli.conf.

I always thought Tom's Obvious Minimal Language to play in the json/yaml ballpark, but in any case, the path we are putting the file in gives the conffile character away, too.

This will read the global (/etc/pulp/cli_config.toml) first and merge
with the user local ones (settings.toml, cli_config.toml) in that order.
Creating and editing config files default to cli_config now.

fixes pulp#290
fixes pulp#293
@mdellweg mdellweg force-pushed the refactor_settings branch from 2edc4cb to 9b72266 Compare July 16, 2021 13:37
@mdellweg
Copy link
Member Author

@evgeni do you think, this serves your need?

@evgeni
Copy link
Member

evgeni commented Jul 16, 2021

This reads like what I'd need, yeah!

@mdellweg mdellweg merged commit 7dd0877 into pulp:develop Jul 16, 2021
@mdellweg mdellweg deleted the refactor_settings branch July 16, 2021 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistent naming of "settings" As a user, I want to be able to deploy a global configuration file
3 participants