Defined Type: kmod::blacklist

Defined in:
manifests/blacklist.pp

Summary

Set a kernel module as blacklisted.

Overview

Examples:

kmod::blacklist { 'pcspkr': }

Parameters:

  • ensure (Enum['present', 'absent']) (defaults to: 'present')

    State of the setting

  • file (Stdlib::Unixpath) (defaults to: '/etc/modprobe.d/blacklist.conf')

    File to manage



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/blacklist.pp', line 8

define kmod::blacklist (
  Enum['present', 'absent'] $ensure = 'present',
  Stdlib::Unixpath          $file   = '/etc/modprobe.d/blacklist.conf',
) {
  include kmod

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