summaryrefslogtreecommitdiff
path: root/chef-config/lib
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-04-05 11:49:51 +0100
committerThom May <thom@chef.io>2017-04-05 18:17:38 +0100
commit5c86ade466a38536186218009e32bb4db1ab3c92 (patch)
treed6e93d25ab4736a9d6f3c338971c56302c3f7708 /chef-config/lib
parenta9d0cfb3bcb995d60e096a755e4e58fa47f40047 (diff)
downloadchef-5c86ade466a38536186218009e32bb4db1ab3c92.tar.gz
RFC 59: Load Ohai pluginstm/ohai_plugins_2
This adds a new phase in the compilation of the run context. Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'chef-config/lib')
-rw-r--r--chef-config/lib/chef-config/config.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index b4bb6b76ab..57f55fdce4 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -450,6 +450,10 @@ module ChefConfig
# most of our testing scenarios)
default :minimal_ohai, false
+ # When consuming Ohai plugins from cookbook segments, we place those plugins in this directory.
+ # Subsequent chef client runs will wipe and re-populate the directory to ensure cleanliness
+ default(:ohai_segment_plugin_path) { PathHelper.join(config_dir, "ohai", "cookbook_plugins") }
+
###
# Policyfile Settings
#