From 6d00f36686e4a8012f02480184edd7cef409ffee Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 16 Mar 2020 17:07:45 +0000 Subject: [PATCH] Don't try and configure sysctl on lxc systems --- cookbooks/sysctl/recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/sysctl/recipes/default.rb b/cookbooks/sysctl/recipes/default.rb index a2facc063..ae22a7b3b 100644 --- a/cookbooks/sysctl/recipes/default.rb +++ b/cookbooks/sysctl/recipes/default.rb @@ -22,7 +22,8 @@ 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") keys = [] Dir.new("/etc/sysctl.d").each_entry do |file| -- 2.39.5