puppet-sysctl icon indicating copy to clipboard operation
puppet-sysctl copied to clipboard

enforce check is failed when value is multi fields

Open zenglhua opened this issue 7 years ago • 3 comments

For examples:

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

zenglhua avatar Jul 25 '17 09:07 zenglhua

@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.

tpdownes avatar Aug 18 '17 17:08 tpdownes

But that module doesnt work with Puppet 3.8 right?

gorantornqvist avatar Sep 01 '17 12:09 gorantornqvist

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)

}

tpdownes avatar Sep 01 '17 17:09 tpdownes