diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-14 16:41:38 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-08-14 16:41:38 -0700 |
commit | edd64d4ca255ea99c0ca214364070a58532dd15a (patch) | |
tree | de5ca872d9c98ead930a472569c6f8e6d3c9cf63 | |
parent | 375d70c78aae5184c976dfdca0213c86e9ed186d (diff) | |
download | chef-edd64d4ca255ea99c0ca214364070a58532dd15a.tar.gz |
comment the craziness
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/chef/knife/core/windows_bootstrap_context.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb index d4cad8d819..0b66c7f00e 100644 --- a/lib/chef/knife/core/windows_bootstrap_context.rb +++ b/lib/chef/knife/core/windows_bootstrap_context.rb @@ -58,6 +58,15 @@ class Chef end def config_content + # The windows: true / windows: false in the block that follows is more than a bit weird. The way to read this is that we need + # the e.g. var_chef_dir to be rendered for the windows value ("C:\chef"), but then we are rendering into a file to be read by + # ruby, so we don't actually care about forward-vs-backslashes and by rendering into unix we avoid having to deal with the + # double-backwhacking of everything. So we expect to see: + # + # file_cache_path "C:/chef" + # + # Which is mildly odd, but should be entirely correct as far as ruby cares. + # client_rb = <<~CONFIG chef_server_url "#{chef_config[:chef_server_url]}" validation_client_name "#{chef_config[:validation_client_name]}" |