4 [![Build Status](https://travis-ci.org/duritong/puppet-sysctl.png?branch=master)](https://travis-ci.org/duritong/puppet-sysctl)
9 This modules allows to configure sysctl.
14 node "mynode" inherits ... {
15 sysctl::value { "vm.nr_hugepages": value => "1583"}
18 When setting a key that contains multiple values, use a tab to separate the
21 node "mynode" inherits ... {
22 sysctl::value { 'net.ipv4.tcp_rmem':
23 value => "4096\t131072\t131072",
27 If another config file then /etc/sysctl.conf (default) is required, use target for this:
29 node "mynode" inherits ... {
30 sysctl::value { 'net.ipv4.tcp_rmem':
31 value => "4096\t131072\t131072",
32 target => '/etc/sysctl.d/mysysctl.conf',
36 To avoid duplication the sysctl::value calls multiple settings can be
39 $my_sysctl_settings = {
40 "net.ipv4.ip_forward" => { value => 1 },
41 "net.ipv6.conf.all.forwarding" => { value => 1 },
44 # Specify defaults for all the sysctl::value to be created (
45 $my_sysctl_defaults = {
46 require => Package['aa']
49 create_resources(sysctl::value,$my_sysctl_settings,$my_sysctl_defaults)
54 Copyright (C) 2011 Immerda Project Group
56 Author mh <mh@immerda.ch>, Modified by Nicolas Zin <nicolas.zin@savoirfairelinux.com>, Modified by Artem Sidorenko <artem@2realities.com>