]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Don't try and install kernel modules when running tests
[chef.git] / cookbooks / hardware / recipes / default.rb
index 633edcb19cd2f1b74a53d5ca419a9a62256920c0..7f1431320dd389d532e6157db5852150965a720b 100644 (file)
@@ -547,6 +547,13 @@ end
 node[:hardware][:modules].each do |module_name|
   kernel_module module_name do
     action :install
+    not_if { kitchen? }
+  end
+end
+
+node[:hardware][:blacklisted_modules].each do |module_name|
+  kernel_module module_name do
+    action :blacklist
   end
 end