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

Spaces in value #50

Closed
grundic opened this issue Jun 28, 2013 · 3 comments
Closed

Spaces in value #50

grundic opened this issue Jun 28, 2013 · 3 comments

Comments

@grundic
Copy link

grundic commented Jun 28, 2013

Hello!
I would like to configure kernel.sem parameter in sysctl.conf:

kernel.sem=250 32000 32 2000

Here is my try:

sysctl { "kernel.sem":
  ensure => present,
  value  => "250 32000 32 2000",
}

And each time puppet reconfigures live value:

Notice: /Stage[main]/Profile::Itemservice/Sysctl[kernel.sem]/value: changed live value from '250        32000   32      2000' to '250 32000 32 2000'

I suppose it's because of

vagrant@Ubuntu1204-64:~$ sysctl -a 2>/dev/null | grep 'kernel.sem'
kernel.sem = 250        32000   32      2000

gives output with extra spaces.
Is it possible to avoid this behaviour?

Thanks.

@domcleal
Copy link
Contributor

Fix merged, thanks for the report.

@grundic
Copy link
Author

grundic commented Jun 28, 2013

Hm, I got an error now:

Error: /Stage[main]/Profile::Portal/Sysctl[kernel.sem]/value: change from 250 32000 32 2000 to 250 32000 32 2001 failed: Execution of '/sbin/sysctl -w kernel.sem="250 32000 32 2001"' returned 255: error: "Invalid argument" setting key "kernel.sem"

Running the same command from shell works fine.

@domcleal
Copy link
Contributor

domcleal commented Oct 5, 2013

Thanks, seems this was the same as #53, now fixed.

@domcleal domcleal closed this as completed Oct 5, 2013
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 a pull request may close this issue.

2 participants