This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
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.
I was having some issues reverting values, so I started down a path to cache the defaults as they're removed and kept tweaking and tweaking and here we are.
I completely understand if you'd prefer to leave this as a separate fork, but I thought I'd offer it up and let you decide for youselves.
Rather than duplicate everything here, the best option is to skim over the updated usage section in the readme for starters, and then then continue below where I'll outline the less visible changes.
not_if platform_family?('freebsd')
to prevent the attempt to set keys based on platform.:remove
to immediately return parameter values to their system default.action :save
.'vm.swappiness' => 20
andvm: { swappiness: 20 }
render the same outcomenode.sysctl.params
in a subsequent convergence, the value would be removed from the persisted file, but not unset from the server, violating the expected idempotent behaviour of cookbookswhyrun?
support as it was claiming to support whyrun behavior and then changing kernel values in what should have been dry runs.I've run the full test suite against this PR and it passes with two exceptions; the first is the integration tests for
fedora-20
which fails for me due to this vagrant issue (but it passes once the suite is restarted), and the second is a foodcritic issue which I believe to be a false positive.Happy to answer any questions you may have.