Skip to content

Strip module dependency on Augeas#468

Draft
smortex wants to merge 1 commit intomasterfrom
strip-augeas
Draft

Strip module dependency on Augeas#468
smortex wants to merge 1 commit intomasterfrom
strip-augeas

Conversation

@smortex
Copy link
Member

@smortex smortex commented Dec 9, 2025

Instead of managing each setting with one augeas resource, only manage a
single file resource with a template.

Similarly when testing, instead of testing each setting in isolation,
test the whole generated configuration file. Testing the augeas
invocations gave no clue about the validity of the generated
configuration file, and it greatly helps with performance as running the
client configuration test suite took 1 minute 8.82 seconds to run 2248
examples, and now take less than 6 seconds to run 163 examples with a
better coverage on my development manchine with:

bundle exec rspec spec/classes/openldap_client_config_spec.rb

Instead of managing each setting with one augeas resource, only manage a
single file resource with a template.

Similarly when testing, instead of testing each setting in isolation,
test the whole generated configuration file.  Testing the augeas
invocations gave no clue about the validity of the generated
configuration file, and it greatly helps with performance as running the
client configuration test suite took 1 minute 8.82 seconds to run 2248
examples, and now take less than 6 seconds to run 163 examples with a
better coverage on my development manchine with:

```
bundle exec rspec spec/classes/openldap_client_config_spec.rb
```
@alexjfisher
Copy link
Member

Presumably the configuration file was implemented like this for a reason? The module would not have removed any OS specific configuration that might have been included when openldap is installed.

@alexjfisher
Copy link
Member

(Originally using Shellvar in d87b145#diff-f8eb27ffa0a6bc6f80ed38e1d3697d52ee145f5b5ed07e87e256877a41e9602e in order to support RedHat by not messing with the RedHat managed config).

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.

2 participants