]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/sysctl/recipes/default.rb
Install gcc and make for building native gems
[chef.git] / cookbooks / sysctl / recipes / default.rb
index a2facc06393aad22791feaf98f4273685c89b20d..f16537c5185c277d12897f8424bf8b6cf58575d9 100644 (file)
@@ -22,7 +22,9 @@ file "/etc/sysctl.d/60-chef.conf" do
 end
 
 if node[:virtualization][:role] != "guest" ||
-   node[:virtualization][:system] != "lxd"
+   (node[:virtualization][:system] != "lxc" &&
+    node[:virtualization][:system] != "lxd" &&
+    node[:virtualization][:system] != "openvz")
   keys = []
 
   Dir.new("/etc/sysctl.d").each_entry do |file|