Signed-off-by: Stephen Gran <steve@lobefin.net>
}
site::sysctl { 'maxfiles':
- key => 'kern.maxfiles',
- value => 65536,
+ key => 'kern.maxfiles',
+ value => 65536,
+ target => 'GNU/kFreeBSD',
}
}
hasstatus => false,
status => '/bin/true',
}
+
+ file { '/etc/sysctl.d/':
+ ensure => directory,
+ mode => '0755'
+ }
+
}
-define site::sysctl ($key, $value, $ensure = present) {
+define site::sysctl ($key, $value, $target=Linux, $ensure = present) {
include site
case $ensure {
present: {}
default: { fail ( "Unknown ensure value: '$ensure'" ) }
}
- if $::kernel == 'Linux' {
+ if $::kernel == $target {
file {
"/etc/sysctl.d/${name}.conf":
ensure => $ensure,