solaris_ndd

set solaris driver configuration with puppet (kernel tuning)

Geoff Williams

geoffwilliams

6,704 downloads

6,030 latest version

1.9 quality score

Version information

  • 0.1.3 (latest)
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Feb 23rd 2017

Start using this module

Documentation

geoffwilliams/solaris_ndd — version 0.1.3 Feb 23rd 2017

Build Status

solaris_ndd

Table of Contents

  1. Description
  2. Usage - Configuration options and additional functionality
  3. Reference - An under-the-hood peek at what the module is doing and how
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Description

Set solaris driver configuration with puppet (kernel tuning). This module uses the ndd tool to get/set settings and update as required

Usage

solaris_ndd { "/dev/ip->ip_forward_src_routed":
  value => 0,
}

Each parameter is handled as a different Puppet resource. The title specifies the kernel driver and the parameter, delimited by -> and the puppet code translates the supplied title and value into the correct ndd invocation. Eg, the example above becomes:

ndd -set /dev/ip ip_forward_src_routed 0

The call to ndd -set is protected by a corresponding call to ndd -get to provide idempotence.

Reference

Defined types

  • solaris_ndd - Manage individual Solaris driver parameters (Kernel tuning)

Limitations

  • Only works on Solaris
  • Not supported by Puppet, inc.

Development

PRs accepted :)

Testing

This module supports testing using PDQTest.

Test can be executed with:

bundle install
bundle exec pdqtest all

See .travis.yml for a working CI example