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

Unable to specify duplicate sysctl value even though target is different #25

Open
kenmiller316 opened this issue Jun 19, 2018 · 2 comments

Comments

@kenmiller316
Copy link

Hi,

I'm working on a very LARGE project that wants node defaults and application updates to those defaults. vm.swappiness is a perfect example. By default they want 60, but certain applications need 0. I was hoping to manage both conditions with different sysctl.d/NN-target.conf files, but the second instance throws a duplicate declaration error.

Any chance this behavior could be changed?

Thanks,

== k+ ==

@trevor-vaughan
Copy link
Contributor

@kenmiller316 As far as I know, you can only declare a given sysctl value once on a given system. You're going to want to abstract this one level up so that you can only manage it once per system.

Your best bet is probably to drive it via Hiera for your different types of nodes.

@raphink
Copy link
Member

raphink commented Oct 18, 2018

Technically, it would be possible to manage two values in different files with Puppet by setting up composite namevars on the type, but as @trevor-vaughan noted, it might not be the best approach in this case if sysctl doesn't support it.

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

No branches or pull requests

3 participants