puppet/modules/redis/manifests/overcommit.pp @ fcd5abfaeff4
Store shows before notifying so we get the right title in the email.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 23 Oct 2011 20:41:11 -0400 |
parents |
ead78c7e9a4d |
children |
(none) |
class redis::overcommit($ensure=present) {
file { "/etc/sysctl.d/overcommit.conf":
ensure => $ensure,
content => "vm.overcommit_memory=1",
}
if $ensure == "present" {
exec { "overcommit-memory":
command => "sysctl vm.overcommit_memory=1",
unless => "test `sysctl -n vm.overcommit_memory` = 1",
}
}
}