Defined Type: kmod::blacklist

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

Overview

Define: kmod::blacklist

Blacklist the given Linux kernel modules.

Parameters

modules

The list of module names to be blacklisted.

Example

kmod::blacklist { “linux44”:

modules => [ 'asn1_decoder', 'macsec' ],

}

Parameters:

  • modules (Any) (defaults to: [])
  • ensure (Any) (defaults to: present)


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

define kmod::blacklist($modules = [], $ensure = present) {
    file { "/etc/modprobe.d/blacklist-${name}.conf":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => template('kmod/blacklist.conf.erb'),
        notify  => Exec['update-initramfs'],
    }
}