summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-07-01 13:02:51 -0700
committerTim Smith <tsmith84@gmail.com>2021-09-16 18:33:45 -0700
commit22285e26d8233f9919e98913b69dfaab38b3380e (patch)
tree0c2e083210c2f4785ee07b27790744e8de268ddf /kitchen-tests
parent72bb57cc2afe956e83727b99831cf10336db596c (diff)
downloadchef-22285e26d8233f9919e98913b69dfaab38b3380e.tar.gz
Fix handling of ohai properties in chef_client_config
These 2 properties don't match the config format so the existing logic didn't work. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_config.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_config.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_config.rb
index 0e68582af0..c2a6e4254b 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_config.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_chef_client_config.rb
@@ -1,6 +1,8 @@
chef_client_config "Create chef-client's client.rb" do
chef_server_url "https://localhost"
chef_license "accept"
+ ohai_optional_plugins %i{Passwd Lspci Sysctl}
+ ohai_disabled_plugins %i{Sessions Interrupts}
additional_config <<~CONFIG
begin
require 'aws-sdk'