-
Notifications
You must be signed in to change notification settings - Fork 416
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
Implement drop-in configuration folder (RhBug:1352234) #1414
base: master
Are you sure you want to change the base?
Conversation
@jamescassell Can you fix your authorship of your commit? |
We also need similar handling for this in libdnf itself, so that PackageKit and other things using libdnf directly can leverage it... |
Not sure how. I didn't make the change, only resolved the conflicts from the original PR... not sure where to make the change in libdnf but I'll take a look |
commit authorship fixed |
@j-mracek Could you check this too? |
@jamescassell Can you rebase the |
@jamescassell Hi. Thank you for the PR. It's a good idea to support drop-in configuration folder.
|
I'll try to take a look when I get a moment. |
I would like to propose other mechanism that will allow to change default configuration for a particular downstream without modification of /etc/dnf/dnf.conf. I suggest that we need a configuration file that will be not handled by rpm as configuration, therefore the content will be overwritten during updates. At the top there will be note that this file is not supposed to be modified by end user, and it is used exclusively for distribution purpose. The question would be where the file will be located, because there must be a reference in man pages. Why I don't like a drop in folder for configuration for DNF. In case that multiple files will be presented there the final behaviour will depend on the name of files. For append option the behaviour is fine put for other type configuration it will lead in non transparent situation. Think about 5 configuration files (from distribution, dnf-plugins, application that uses API, GUI, ...) then the situation will be very messy. And nothing will be wrong because it is allowed. @Conan-Kudo Please if there is any other requirement for drop in configuration directory, please provide additional user-cases or stories. |
@j-mracek From my side, I have two major requirements:
What I would envision is supporting having configuration files in For repositories, I think that |
Please could you be more specific about
But it means to wait, am I correct? Thanks Neal for explanation. I see as major problem with configuration a difficulty of any changes of defaults during life cycle of the system. But the issue is already handled by DNF plugin rpm-conf (extras). Also I am not sure if any user cases that were already mentioned can be resolved by drop in directory for configuration. Multi layer repo configuration would require additional changes that will allow multi definition of the same repository. But it also mean that by that way two different repositories could be merged into single object. |
The Regardless, the major goal here is to stop shipping configuration files in |
Agree, but drop in folder in |
This is a rebase of #887
depends on rpm-software-management/libdnf#751