Defined Type: kmod::install
- Defined in:
- manifests/install.pp
Overview
Definition: kmod::install
Set a kernel module as installed.
Parameters:
-
ensure: present/absent;
-
command: optionally, set the command associated with the kernel module;
-
file: optionally, set the file where the stanza is written.
Example usage:
kmod::install { 'pcspkr': }
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/install.pp', line 15
define kmod::install(
$ensure=present,
$command='/bin/true',
$file="/etc/modprobe.d/${name}.conf",
) {
kmod::setting { "kmod::install ${title}":
ensure => $ensure,
module => $name,
file => $file,
category => 'install',
option => 'command',
value => $command,
}
}
|