Forge Home

sysctl

UNKNOWN

1,018,244 downloads

152,586 latest version

3.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

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 Sep 17th 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'duritong-sysctl', '0.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add duritong-sysctl
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install duritong-sysctl --version 0.0.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: sysctl

Documentation

duritong/sysctl — version 0.0.2 Sep 17th 2013

Requirements

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",
  }
}

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)

The sysctl binary needs to be found in your Path. It is preferred that you set your exec path globally. This is usually done in site.pp and would look something like this (adjust for your environment):

# Set a site-wide global path so we don't have to explicitly specify a path
# for each exec.
Exec { path => '/usr/bin:/usr/sbin:/bin:/sbin' }

License

Copyright (C) 2011 Immerda Project Group
Author mh mh@immerda.ch
Modified by Nicolas Zin nicolas.zin@savoirfairelinux.com
Licence: GPL v2