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

As a user, I want to be able to deploy a global configuration file #290

Closed
evgeni opened this issue Jul 1, 2021 · 1 comment · Fixed by #307
Closed

As a user, I want to be able to deploy a global configuration file #290

evgeni opened this issue Jul 1, 2021 · 1 comment · Fixed by #307
Labels
feature request New feature request (template-set)
Milestone

Comments

@evgeni
Copy link
Member

evgeni commented Jul 1, 2021

Right now pulp-cli only reads ~/.config/pulp/settings.toml (btw, why doesn't it mention cli enywhere?).

I would like to be able to deploy a /etc/pulp/cli/settings.toml (or whatever other path you can think of, in /etc/pulp) which will be loaded before the one in ~/.config, so I can deploy "global" configuration defaults that vary from the ones in the app itself, but should be valid for all users.

Background: on Katello installations, I want to deploy pulp-cli with a default of dry-run = true.

@mdellweg
Copy link
Member

mdellweg commented Jul 2, 2021

Consider #293 also when refactoring configuration gathering.

@ggainey ggainey added feature request New feature request (template-set) triaged labels Jul 7, 2021
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 16, 2021
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 added this to the 0.11.0 milestone Jul 16, 2021
mdellweg added a commit to mdellweg/pulp-cli that referenced this issue Jul 16, 2021
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 added a commit to mdellweg/pulp-cli that referenced this issue Jul 16, 2021
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 added a commit that referenced this issue Jul 16, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request (template-set)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants