-if node[:lsb][:release].to_f <= 8.04
- sysctl_template = "sysctl.conf.erb"
- sysctl_conf = "/etc/sysctl.conf"
-else
- directory "/etc/sysctl.d" do
- owner "root"
- group "root"
- mode 0755
- end
+if node[:virtualization][:role] != "guest" ||
+ (node[:virtualization][:system] != "lxc" &&
+ node[:virtualization][:system] != "lxd" &&
+ node[:virtualization][:system] != "openvz")
+ keys = []