projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git]
/
site
/
manifests
/
sysctl.pp
1
define site::sysctl ($key, $value, $ensure = present) {
2
include site
3
case $ensure {
4
present: {}
5
absent: {}
6
default: { fail ( "Unknown ensure value: '$ensure'" ) }
7
}
8
9
if $::kernel == 'Linux' {
10
file {
11
"/etc/sysctl.d/${name}.conf":
12
ensure => $ensure,
13
owner => root,
14
group => root,
15
mode => '0644',
16
content => "${key} = ${value}\n",
17
notify => Service['procps']
18
}
19
}
20
}