Skip to content

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