]> git.openstreetmap.org Git - chef.git/commitdiff
Do not install RAID monitor on container environments
authorGrant Slater <git@firefishy.com>
Sat, 18 Apr 2020 14:34:05 +0000 (15:34 +0100)
committerGrant Slater <git@firefishy.com>
Sat, 18 Apr 2020 14:34:05 +0000 (15:34 +0100)
cookbooks/hardware/recipes/default.rb

index 77c4356c30fa8a43cc84d9de7bf4c73b6d6eadde..021cc1da557ea66c72068006e89a5d58609bcb21 100644 (file)
@@ -197,7 +197,9 @@ tools_packages = []
 status_packages = {}
 
 if node[:virtualization][:role] != "guest" ||
-   node[:virtualization][:system] != "lxd"
+   (node[:virtualization][:system] != "lxc" &&
+    node[:virtualization][:system] != "lxd" &&
+    node[:virtualization][:system] != "openvz")
 
   node[:kernel][:modules].each_key do |modname|
     case modname