This module provides definitions to manipulate modprobe.conf (5) stanzas:
- kmod::alias
- kmod::install
- kmod::blacklist
It depends on Augeas with the modprobe lens.
This module has five main defined types:
- kmod::load
- kmod::alias
- kmod::option
- kmod::install
- kmod::blacklist
Loads a module using modprobe and manages persistent modules in /etc/sysconfig/modules
kmod::load { 'mymodule': }
Adds an alias to modprobe.conf, by default /etc/modprobe.d/<name>.conf
is assumed for a filename.
kmod::alias { 'bond0':
modulename => 'bonding',
}
Params:
modulename
: Name of the module to aliasaliasname
: Name of the alias (defaults to the resource title)file
: File to write to (see above default)
Adds an option to modprobe.conf
kmod::option { 'bond0 mode':
module => 'bond0',
option => 'mode',
value => '1',
}
kmod::option { 'bond0':
option => 'mode',
value => '1',
}
Params:
option
: Name of the parameter to addvalue
: Value of the parametermodule
: Name of the module (if ommited, the resource title is used)file
: File to write to (defaults to/etc/modprobe.d/<module name>.conf
)
Manages modprobe blacklist entries
kmod::blacklist { 'foo': }
Params:
file
: File to write to, defaults to/etc/modprobe.d/blacklist.conf
Manage modprobe install entries
kmod::install { 'pcspkr': }
Params:
file
: File to write to (defaults to/etc/modprobe.d/<module name>.conf
)command
: (optional) command associated with the install, defaults to/bin/true
Please report bugs and feature request using GitHub issue tracker.
For pull requests, it is very much appreciated to check your Puppet manifest with puppet-lint to follow the recommended Puppet style guidelines from the Puppet Labs style guide.
Copyright (c) 2013 mailto:puppet@camptocamp.com All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.