summaryrefslogtreecommitdiff
path: root/chef-config/lib/chef-config
diff options
context:
space:
mode:
authorskylerto <skylerclayne@gmail.com>2021-05-18 10:12:16 -0400
committerskylerto <skylerclayne@gmail.com>2021-05-18 10:12:26 -0400
commit92cc4324bb72e304b29195744ff805a13356ad47 (patch)
tree6f5d4a1a9e5b78a2b3865cfb1b073bf460f3078f /chef-config/lib/chef-config
parent79f6c3914c04d7c022eefbc3e7005f91d196317e (diff)
downloadchef-92cc4324bb72e304b29195744ff805a13356ad47.tar.gz
adds unix_bootstrap and windows_bootstrap path configs
Adds the bootstrap path configs, taking feedback from #11189 resolving #10964 and #10367 Signed-off-by: skylerto <skylerclayne@gmail.com>
Diffstat (limited to 'chef-config/lib/chef-config')
-rw-r--r--chef-config/lib/chef-config/config.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index 2496a07eae..970e054834 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -392,9 +392,21 @@ module ChefConfig
# Where chef's cache files should be stored
default(:file_cache_path) { PathHelper.join(cache_path, "cache") }.writes_value { |path| expand_relative_paths(path) }
+ # Where chef's cache files should be stored, used for bootstrap on unix filesystems
+ default(:unix_bootstrap_file_cache_path) { PathHelper.join("/var", ChefUtils::Dist::Infra::DIR_SUFFIX, "cache", windows: false) }
+
+ # Where chef's cache files should be stored, used for bootstrap on windows filesystems
+ default(:windows_bootstrap_file_cache_path) { PathHelper.join("C:", ChefUtils::Dist::Infra::DIR_SUFFIX, "cache", windows: true) }
+
# Where backups of chef-managed files should go
default(:file_backup_path) { PathHelper.join(cache_path, "backup") }
+ # Where chef's backup files should be stored, used for bootstrap on unix filesystems
+ default(:unix_bootstrap_file_backup_path) { PathHelper.join("/var", ChefUtils::Dist::Infra::DIR_SUFFIX, "backup", windows: false) }
+
+ # Where chef's backup files should be stored, used for bootstrap on windows filesystems
+ default(:windows_bootstrap_file_backup_path) { PathHelper.join("C:", ChefUtils::Dist::Infra::DIR_SUFFIX, "backup", windows: true) }
+
# The chef-client (or solo) lockfile.
#
# If your `file_cache_path` resides on a NFS (or non-flock()-supporting