summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-07-01 13:02:51 -0700
committerTim Smith <tsmith@chef.io>2021-07-01 13:02:51 -0700
commit0181c597552b6e5855224c37a3583a2c0ec1aa59 (patch)
tree6757cc8e4cae95d6125c0392815f9b108e66cfaa /kitchen-tests/cookbooks
parentec33c4b9b46f6905e14aef7deda2cd9637af5078 (diff)
downloadchef-0181c597552b6e5855224c37a3583a2c0ec1aa59.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/cookbooks')
-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'