-
-
Save ahendrix/9396937 to your computer and use it in GitHub Desktop.
Revisions
-
ahendrix revised this gist
Mar 6, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,7 @@ bash "install #{params[:name]} in /etc/modules" do code "echo '#{params[:name]}' >> /etc/modules" not_if "grep '^#{params[:name]}$' /etc/modules" # TODO: assert that /var/run/reboot-required contains a string end end end -
mikehale created this gist
Sep 4, 2009 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # 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 code "echo '#{params[:name]}' >> /etc/modules" not_if "grep '^#{params[:name]}$' /etc/modules" end end end