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

Prevent multiple spaces in sysctl value #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mathiasaerts
Copy link

When setting a sysctl value that consists of multiple numbers (like net.ipv4.ip_local_port_range, with a value like 1024 65535), the configured value will be 'enforced' on every puppet run, since the output of sysctl -n will display the output with a tab character instead of a single space.

To prevent the value from being set on every puppet run, I've added a sed command to replace multiple spaces (or tabs) with a single space when comparing the current value.

@nbrys
Copy link

nbrys commented Jul 11, 2019

Please merge this PR.

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