Defined Type: kmod::options

Defined in:
modules/kmod/manifests/options.pp

Overview

Define: kmod::options

Add options to the given module every time it is inserted into the kernel.

Parameters

options

The options to add.

Example

kmod::options { “nf_conntrack”:

options => 'hashsize=32768',

}

Parameters:

  • options (Any)


16
17
18
19
20
21
22
23
24
# File 'modules/kmod/manifests/options.pp', line 16

define kmod::options($options) {
    file { "/etc/modprobe.d/options-${name}.conf":
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('kmod/options.conf.erb'),
    }
}