1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#
# == 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': }
#
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,
}
}
|