1 define site::sysctl ($key='', $value='', $target='Linux', $ensure = present) {
4 present: { if ($key == "" or $value == "") { fail ( "Need to provide key and value" )} }
6 default: { fail ( "Unknown ensure value: '$ensure'" ) }
9 if $::kernel == $target {
11 "/etc/sysctl.d/${name}.conf":
16 content => "${key} = ${value}\n",
17 notify => Service['procps']