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

No quote wrapping for non-sysctl sections #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greatflyingsteve
Copy link

Although quoting space-containing values in the [sysctl] section of a tuned profile is fine, arguably necessary, and shown in RedHat's included default tuning profiles, when our template adds quotes to all values in all sections, they are taken literally and included as if they were part of the value itself. Adjust this quote-by-default logic in the profile template so that it only quotes values inside of the [sysctl] section, and nothing else. It is still possible for anyone who needs literal quotes around a value outside of this section to pass them as part of Puppet's value, but the template will no longer add them.

This patch is tested, works correctly, and is in production on all ~3k of our hosts. This resolves #28.

Although quoting space-containing values in the `[sysctl]` section of a
tuned profile is fine, arguably necessary, and shown in RedHat's
included default tuning profiles, when our template adds quotes to all
values in all sections, they are taken literally and included as if they
were part of the value itself.  Adjust this quote-by-default logic in
the profile template so that it only quotes values inside of the
`[sysctl]` section, and nothing else.  It is still possible for anyone
who needs literal quotes around a value outside of this section to pass
them as part of Puppet's value, but the template will no longer add
them.
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.

Quoting all space-containing values breaks kernel command line management
1 participant