sysctl

Configure and manage sysctl

ULHPC DevOps Team

ULHPC

10,207 downloads

5,513 latest version

4.6 quality score

Version information

  • 0.3.0 (latest)
  • 0.2.1
  • 0.2.0
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4
  • 0.1.3
released May 16th 2017
This version is compatible with:
  • Debian
    ,
    Centos

Start using this module

Documentation

ULHPC/sysctl — version 0.3.0 May 16th 2017

-- mode: markdown; mode: visual-line; --

Sysctl Puppet Module

Puppet Forge License Supported Platforms Documentation Status

Configure and manage sysctl

  Copyright (c) 2015 S. Varrette, H. Cartiaux, V. Plugaru, S. Diehl aka. UL HPC Management Team <hpc-sysadmins@uni.lu>
  

| Project Page | Sources | Documentation | Issues |

Synopsis

Configure and manage sysctl.

This module implements the following elements:

  • Puppet classes:

    • sysctl
    • sysctl::common
    • sysctl::common::debian
    • sysctl::common::redhat
    • sysctl::params
  • Puppet definitions:

    • `sysctl::value: set a kernel parameter with sysctl

All these components are configured through a set of variables you will find in manifests/params.pp.

Note: the various operations that can be conducted from this repository are piloted from a Rakefile and assumes you have a running Ruby installation. See docs/contributing.md for more details on the steps you shall follow to have this Rakefile working properly.

Dependencies

See metadata.json. In particular, this module depends on

Overview and Usage

Class sysctl

This is the main class defined in this module. It accepts the following parameters:

  • $ensure: default to 'present', can be 'absent'

Use it as follows:

 include ' sysctl'

See also tests/init.pp

Definition sysctl::value

The definition sysctl::value provides a way to define a kernel parameter with sysctl. This definition accepts the following parameters:

  • $ensure: default to 'present' (will create or update the value), can be 'absent' (will remove the parameter)
  • value: set the kernel parameter (in sysctl.conf and with sysctl)

Examples:

Set a tunable such that the kernel does not reboot automatically if a node panics:

    sysctl::value { 'kernel.panic':
          ensure => 'present',
          value  => 0
    }

   

Unset the tunable (reset to default):

    sysctl::value { 'kernel.panic':
          ensure => 'absent'
    }

See also tests/init.pp

Librarian-Puppet / R10K Setup

You can of course configure the sysctl module in your Puppetfile to make it available with Librarian puppet or r10k by adding the following entry:

 # Modules from the Puppet Forge
 mod "ULHPC/sysctl"

or, if you prefer to work on the git version:

 mod "ULHPC/sysctl", 
     :git => 'https://github.com/ULHPC/puppet-sysctl',
     :ref => 'production' 

Issues / Feature request

You can submit bug / issues / feature request using the ULHPC/sysctl Puppet Module Tracker.

Developments / Contributing to the code

If you want to contribute to the code, you shall be aware of the way this module is organized. These elements are detailed on docs/contributing.md.

You are more than welcome to contribute to its development by sending a pull request.

Puppet modules tests within a Vagrant box

The best way to test this module in a non-intrusive way is to rely on Vagrant. The Vagrantfile at the root of the repository pilot the provisioning various vagrant boxes available on Vagrant cloud you can use to test this module.

See docs/vagrant.md for more details.

Online Documentation

Read the Docs aka RTFD hosts documentation for the open source community and the ULHPC/sysctl puppet module has its documentation (see the docs/ directly) hosted on readthedocs.

See docs/rtfd.md for more details.

Licence

This project and the sources proposed within this repository are released under the terms of the GPL-3.0 licence.

Licence