From 97ddd01262cdc9e4896668bd699bf2cc06b1c9a3 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 14 Apr 2012 15:17:53 +0200 Subject: [PATCH] site::sysctl is linux-only for now Signed-off-by: Stephen Gran --- modules/site/manifests/sysctl.pp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/site/manifests/sysctl.pp b/modules/site/manifests/sysctl.pp index ac357a7cb..49a6be431 100644 --- a/modules/site/manifests/sysctl.pp +++ b/modules/site/manifests/sysctl.pp @@ -6,13 +6,15 @@ define site::sysctl ($key, $value, $ensure = present) { default: { fail ( "Unknown ensure value: '$ensure'" ) } } - file { - "/etc/sysctl.d/${name}.conf": - ensure => $ensure, - owner => root, - group => root, - mode => '0644', - content => "${key} = ${value}\n", - notify => Service['procps'] + if $::kernel == 'Linux' { + file { + "/etc/sysctl.d/${name}.conf": + ensure => $ensure, + owner => root, + group => root, + mode => '0644', + content => "${key} = ${value}\n", + notify => Service['procps'] + } } } -- 2.20.1