summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-01-27 15:19:40 -0800
committerGitHub <noreply@github.com>2020-01-27 15:19:40 -0800
commit62cea59b27511f00a793de467b3f07b041b30581 (patch)
treeb6b04bd4fc7947ee496a8c93cb7376229039db54
parent18de236bf4f48ce997ac53ddff16f3df1c8b605d (diff)
parent6305bc79730d0d53b0eff377ad30a4a6df40d30c (diff)
downloadchef-62cea59b27511f00a793de467b3f07b041b30581.tar.gz
Merge pull request #9290 from chef/site-cookbooks-config
Remove the sites-cookbooks dir from the cookbook_path default config
-rw-r--r--chef-config/lib/chef-config/config.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index b2dff9a764..a0fc8d5bd2 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -272,15 +272,8 @@ module ChefConfig
# Location of cookbooks on disk. String or array of strings.
# Defaults to <chef_repo_path>/cookbooks. If chef_repo_path
- # is not specified, this is set to [/var/chef/cookbooks, /var/chef/site-cookbooks]).
- default(:cookbook_path) do
- if configuration[:chef_repo_path]
- derive_path_from_chef_repo_path("cookbooks")
- else
- Array(derive_path_from_chef_repo_path("cookbooks")).flatten +
- Array(derive_path_from_chef_repo_path("site-cookbooks")).flatten
- end
- end
+ # is not specified, this is set to /var/chef/cookbooks.
+ default(:cookbook_path) { derive_path_from_chef_repo_path("cookbooks") }
# Location of data bags on disk. String or array of strings.
# Defaults to <chef_repo_path>/data_bags.