Forge Home

sysctl

This modules allows you to configure sysctl.

Peter Meier

duritong

978,234 downloads

126,283 latest version

4.6 quality score

Version information

  • 0.0.12 (latest)
  • 0.0.11
  • 0.0.10
  • 0.0.9
  • 0.0.8
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Jul 24th 2018
This version is compatible with:
  • RedHat
    ,
    CentOS
    ,
    OracleLinux
    ,
    Scientific
    ,
    SLES
    ,
    Debian
    ,
    Ubuntu
    ,
    Solaris
    ,
    FreeBSD
    ,
    OpenBSD

Start using this module

Tags: sysctl

Documentation

duritong/sysctl — version 0.0.12 Jul 24th 2018

Requirements

Build Status

Overview

This modules allows to configure sysctl.

Usage

node "mynode" inherits ... {
  sysctl::value { "vm.nr_hugepages": value => "1583"}
}

When setting a key that contains multiple values, use a tab to separate the values:

node "mynode" inherits ... {
  sysctl::value { 'net.ipv4.tcp_rmem':
      value => "4096\t131072\t131072",
  }
}

If another config file then /etc/sysctl.conf (default) is required, use target for this:

node "mynode" inherits ... {
  sysctl::value { 'net.ipv4.tcp_rmem':
      value => "4096\t131072\t131072",
      target => '/etc/sysctl.d/mysysctl.conf',
  }
}

To avoid duplication the sysctl::value calls multiple settings can be managed like this:

$my_sysctl_settings = {
  "net.ipv4.ip_forward"          => { value => 1 },
  "net.ipv6.conf.all.forwarding" => { value => 1 },
}

# Specify defaults for all the sysctl::value to be created (
$my_sysctl_defaults = {
  require => Package['aa']
}

create_resources(sysctl::value,$my_sysctl_settings,$my_sysctl_defaults)

Puppet 3 support

The 0.0.12 release will be the last version that supports Puppet 3 support.

License

Copyright (C) 2011 Immerda Project Group

Author mh mh@immerda.ch, Modified by Nicolas Zin nicolas.zin@savoirfairelinux.com, Modified by Artem Sidorenko artem@2realities.com

Licence: GPL v2