Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The kernel_module cookbook has been deprecated

Author provided reason for deprecation:

The kernel_module cookbook has been deprecated and is no longer being maintained by its authors. Use of the kernel_module cookbook is no longer recommended.


kernel_module (5) Versions 1.0.0

Load kernel modules

cookbook 'kernel_module', '= 1.0.0', :supermarket
cookbook 'kernel_module', '= 1.0.0'
knife supermarket install kernel_module
knife supermarket download kernel_module
Quality 0%

kernel_module Cookbook

This cookbook will aid in adding/removing kernel modules from a running system, and ensure they're loaded at system boot.


Requires Chef 12.5+.


The release was tested on:

  • Ubuntu 12.04
  • Ubuntu 14.04

May work with or without modification on other Debian derivatives.



This recipe expects node[:kernel_modules] to be of the form:

  raid10: :install,
  raid456: :uninstall,
  ntfs: :blacklist

and performs the actions specified on the modules listed, so you can specify modules to load/unload entirely from a role-file.



  • ['kernel_modules'] - Hash of modules to perform actions on using the default recipe.



This resource allows you to manage kernel modules.


  • :install: loads the module immediately, adds an entry to /etc/modprobe.d to ensure it loads on boot, and updates the initramfs.
  • :uninstall: unloads the module immediately, removes the configuration entry, and updates the initrams.
  • :blacklist: unloads the module immediately, and adds a configuration file to blacklist the module.
  • :load: loads the module immediately.
  • :unload: unloads the module immediately.


Permanently load the zfs module:

kernel_module 'zfs'

Unload just the raid10 module:

kernel_module 'raid10' do
  action :unload

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

network_interfaces_v2 Applicable Versions

Foodcritic Metric

1.0.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/176ff05a7fc22682be5a6879/kernel_module/recipes/default.rb:7
FC016: LWRP does not declare a default action: /tmp/cook/176ff05a7fc22682be5a6879/kernel_module/resources/default.rb:1