File: install.pp

package info (click to toggle)
puppet-module-camptocamp-kmod 2.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 288 kB
  • sloc: ruby: 244; makefile: 12; sh: 11
file content (30 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (3)
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,
  }

}