]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/sysctl/README.md
fix UTF-8 character
[dsa-puppet.git] / 3rdparty / modules / sysctl / README.md
1 Requirements
2 ============
3
4 [![Build Status](https://travis-ci.org/duritong/puppet-sysctl.png?branch=master)](https://travis-ci.org/duritong/puppet-sysctl)
5
6 Overview
7 --------
8
9 This modules allows to configure sysctl.
10
11 Usage
12 -----
13
14     node "mynode" inherits ... {
15       sysctl::value { "vm.nr_hugepages": value => "1583"}
16     }
17
18 When setting a key that contains multiple values, use a tab to separate the
19 values:
20
21     node "mynode" inherits ... {
22       sysctl::value { 'net.ipv4.tcp_rmem':
23           value => "4096\t131072\t131072",
24       }
25     }
26
27 If another config file then /etc/sysctl.conf (default) is required, use target for this:
28
29     node "mynode" inherits ... {
30       sysctl::value { 'net.ipv4.tcp_rmem':
31           value => "4096\t131072\t131072",
32           target => '/etc/sysctl.d/mysysctl.conf',
33       }
34     }
35
36 To avoid duplication the sysctl::value calls multiple settings can be
37 managed like this:
38
39     $my_sysctl_settings = {
40       "net.ipv4.ip_forward"          => { value => 1 },
41       "net.ipv6.conf.all.forwarding" => { value => 1 },
42     }
43     
44     # Specify defaults for all the sysctl::value to be created (
45     $my_sysctl_defaults = {
46       require => Package['aa']
47     }
48     
49     create_resources(sysctl::value,$my_sysctl_settings,$my_sysctl_defaults)
50
51 License
52 -------
53
54 Copyright (C) 2011 Immerda Project Group
55
56 Author mh <mh@immerda.ch>, Modified by Nicolas Zin <nicolas.zin@savoirfairelinux.com>, Modified by Artem Sidorenko <artem@2realities.com>
57
58 Licence: GPL v2