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

enforce check is failed when value is multi fields #57

Open
zenglhua opened this issue Jul 25, 2017 · 3 comments
Open

enforce check is failed when value is multi fields #57

zenglhua opened this issue Jul 25, 2017 · 3 comments

Comments

@zenglhua
Copy link

For examples:

net.ipv4.tcp_wmem=4096 65536 16777216
net.ipv4.tcp_rmem=4096 87380 16777216

@tpdownes
Copy link

@zenglhua I resolved this in

https://forge.puppet.com/tpdownes/sysctl

You just have to follow the docs and use single spaces between the fields.

@gorantornqvist
Copy link

But that module doesnt work with Puppet 3.8 right?

@tpdownes
Copy link

tpdownes commented Sep 1, 2017

No. Deliberately not so. You might choose it for inspiration. But... I've decided to adopt

https://forge.puppet.com/herculesteam/augeasproviders_sysctl

which claims Puppet 3.x compatibility. Then I build a really simple profile around it. You'd need to remove the Puppet 4 parameter type enforcement. I've found it to be basically drop-in.

class profile::sysctl(
  Hash $values = undef) {

  create_resources('sysctl', $values)

}

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