Rework default database lifecycle on Debian #372
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When Debian install slapd, it configure it by default with a database that match the hostname unless overridden by a preseed file as we did before. We did remove this database, however this has consequences on the first database created by the module and prevent it from being restored after being dumped (#366).
This PR remove database name customization and request
no_configuration
from the preseed file. This requires us to bootstrap thecn=config
database, but also prevent the package from installing correctly (709472). To workaround this new issue, setup apolicy-rc.d
so that the service is not started at the post-install stage. Becausepolicy-rc.d
is a system-wide script, we hope to cause conflicts with infrastructures which have a custom one. We therefore provide a new flag to opt-out from managing this file from the repo.Existing databases which cannot be dumped/restored are not fixed, but new deployment should not have this issue.
Fixes #366