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

sysctl provider fails if multiple instances of value are declared in sysctl.conf #123

Closed
cwells opened this issue Jun 25, 2014 · 2 comments
Labels
bug Something isn't working

Comments

@cwells
Copy link

cwells commented Jun 25, 2014

[root@linstageechodb2 ~]# sysctl -n net.core.wmem_max
16777216

[root@linstageechodb2 ~]# grep net.core.wmem_max /etc/sysctl.conf 
net.core.wmem_max=16777216
net.core.wmem_max=17476000

Puppet run results in the following errors:

Error: undefined method `gsub' for nil:NilClass
Error: /Stage[main]/Profile::Postgres::Kernel/Sysctl[net.core.rmem_max]/value: change from  to 16777216 failed: undefined method `gsub' for nil:NilClass

This failure appears in type/sysctl.rb in the equal method, which in turn is called from the insync? method. The parameter is will be nil if there are multiple declarations of a value in sysctl.conf. Unfortunately it's not clear to me how this particular value is populated, so my debugging has come to its end.

@raphink raphink added the bug label Aug 6, 2014
@raphink
Copy link
Member

raphink commented Aug 6, 2014

What do you expect should happen? Should it remove the duplicate entry and update the first one? or last one?

@raphink
Copy link
Member

raphink commented Nov 17, 2014

Migrated to voxpupuli/puppet-augeasproviders_sysctl#1

@raphink raphink closed this as completed Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants