projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more bacula mail, but to bacula-reports@d.o
[mirror/dsa-puppet.git]
/
modules
/
site
/
manifests
/
sysctl.pp
diff --git
a/modules/site/manifests/sysctl.pp
b/modules/site/manifests/sysctl.pp
index
49a6be4
..
72b8e3d
100644
(file)
--- a/
modules/site/manifests/sysctl.pp
+++ b/
modules/site/manifests/sysctl.pp
@@
-1,4
+1,4
@@
-define site::sysctl ($key, $value, $ensure = present) {
+define site::sysctl ($key, $value, $
target=Linux, $
ensure = present) {
include site
case $ensure {
present: {}
include site
case $ensure {
present: {}
@@
-6,7
+6,7
@@
define site::sysctl ($key, $value, $ensure = present) {
default: { fail ( "Unknown ensure value: '$ensure'" ) }
}
default: { fail ( "Unknown ensure value: '$ensure'" ) }
}
- if $::kernel ==
'Linux'
{
+ if $::kernel ==
$target
{
file {
"/etc/sysctl.d/${name}.conf":
ensure => $ensure,
file {
"/etc/sysctl.d/${name}.conf":
ensure => $ensure,