Defined Type: kmod::blacklist

Defined in:
manifests/blacklist.pp

Overview

Definition: kmod::blacklist

Set a kernel module as blacklisted.

Parameters:

  • ensure: present/absent;

  • file: optionally, set the file where the stanza is written.

Example usage:

kmod::blacklist { 'pcspkr': }

Parameters:

  • ensure (Any) (defaults to: present)
  • file (Any) (defaults to: '/etc/modprobe.d/blacklist.conf')


14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/blacklist.pp', line 14

define kmod::blacklist(
  $ensure=present,
  $file='/etc/modprobe.d/blacklist.conf',
) {


  kmod::setting { "kmod::blacklist ${title}":
    ensure   => $ensure,
    module   => $name,
    file     => $file,
    category => 'blacklist',
  }

}