Skip to content

Instantly share code, notes, and snippets.

View ahendrix's full-sized avatar

Austin Hendrix ahendrix

View GitHub Profile
# A chef definition for installing kernel modules on ubuntu/debian.
define :kernel_module, :action => :install do
if params[:action] == :install
bash "modprobe #{params[:name]}" do
code "modprobe #{params[:name]}"
not_if "lsmod |grep #{params[:name]}"
end
bash "install #{params[:name]} in /etc/modules" do