summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* include Chef DLLs in the Habitat Windows packagerobb/reorder-gem-installs-in-hab-buildRobb Kidd2020-04-281-0/+6
| | | | | | | | | | | | | | | | Chef needs some DLLs on Windows. Normally, the libraries get copied to the directory where the current Ruby executable is located when bundle install is run. We don't want that in Habitat land. The Ruby executable lives in another package and package namespace. We want the libraries included in *this* package. So, here we copy the DLLs during plan build to a lib directory within this package and set an environment variable to disable the copy occuring during bundle install. We push the library path onto RUBY_DLL_PATH to inform whichever Ruby interpreter that will be running Chef where to find our DLLs. Signed-off-by: Robb Kidd <robb@thekidds.org>
* reorder gem installs and add a retryRobb Kidd2020-04-281-5/+9
| | | | | | | | | Needed to install the gems-from-git-repos first. Those are the least likely to have missing dependencies. Then we move on to installing the gems that live in subdirectories of this repo. Sometimes that fails for non-obvious reasons, but a retry seems to succeed. Signed-off-by: Robb Kidd <robb@thekidds.org>
* add status code checks after bare commandsRobb Kidd2020-04-281-0/+5
| | | | | | | Need these so the PowerShell script will exit when bare commands fail. Otherwise the build just keeps truckin' and the errors just pile up. Signed-off-by: Robb Kidd <robb@thekidds.org>
* improve required hab version detectionRobb Kidd2020-04-281-3/+2
| | | | | | | | The original implementation--written by me--was incredibly naive in only testing the minor version. This is much better in using a Version class that knows how to compare actual version numbers. Signed-off-by: Robb Kidd <robb@thekidds.org>
* give good names to the rake tasks that run before installRobb Kidd2020-04-281-16/+25
| | | | | | | | | | | | Renamed "super_install" to something a bit more descriptive and added a description. Moved the rendering of the powershell extension out of "super_install" and into its own named task. These are both now under a pre_install namespace and included in a 'pre_install:all' task. The 'install' task now depends on 'pre_install:all`. Here's hoping names here will help future humans (us) when dealing with these tasks. Signed-off-by: Robb Kidd <robb@thekidds.org>
* Bump version to 16.0.257 by Chef Expeditorv16.0.257Chef Expeditor2020-04-277-19/+20
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #9744 from chef/remove_rake_pingTim Smith2020-04-273-9/+5
|\ | | | | Stop pinning rake
| * Stop pinning rakeremove_rake_pingTim Smith2020-04-273-9/+5
| | | | | | | | | | | | | | The removal of the gem install of appbundler probably fixes where this was leaking in. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 16.0.256 by Chef Expeditorv16.0.256Chef Expeditor2020-04-277-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9751 from chef/lcg/chef-16-logging-fixedTim Smith2020-04-2712-95/+56
|\ \ | | | | | | Rework logging to resolve STDOUT / log_location issues
| * | Logging consistency fixes.lcg/chef-16-logging-fixedLamont Granquist2020-04-2712-95/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The doc formatter is now Chef::Config[:log_location]-aware and will log to files as well - There is now consistency where doc formatter output never surprisingly changes to log formatter based on destination - The "cli" log_location and the "config" log_location are now treated separately, so a log_location in the client.rb will always force output to a logfile, in addition to output to STDOUT if necessary - The logic around STDOUT is now simplified, if its open we log to it, if its closed we don't, if you're daemonized we assume you're capturing STDOUT via your process manager - The log_location variables are now Arrays Things not done: - The cli can't specify an array, it would be nice to support an accumulator pattern here. Would also need to support disabling STDOUT logging though. - Using the syslog or winevt logging devices requires the use of the logger, which precludes using the formatter. - Some people may want to have log-formatter style output to the log file and doc formatter style output to STDOUT which is not very possible right now. Right now we are consistent in that you get either the logger both places or the formatter both places. This use case is complicated by the fact that they will want :info level logging for the logger, but :warn level logging for the doc formatter and that is another global. - To do that latter thing right would probably require sending log messages to the formatter, and supporting a different log level in the formatter vs. the logger and then supporting the STDOUT/cli loggging being the formatter, while the log_location/config logging being the logger. Those were way out of scope for what I could get done for Chef-16. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Bump version to 16.0.255 by Chef Expeditorv16.0.255Chef Expeditor2020-04-277-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9756 from chef/fix_specTim Smith2020-04-271-2/+2
|\ \ \ | | | | | | | | Fix the powershell spec to use the right method
| * | | Fix the powershell spec to use the right methodfix_specTim Smith2020-04-271-2/+2
| | |/ | |/| | | | | | | | | | | | | Running too fast here. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #9758 from chef/robb/moar-emojis-in-buildkiteTim Smith2020-04-271-34/+34
|\ \ \ | | | | | | | | add a ridiculous amount of emoji to buildkite test names
| * | | add a ridiculous amount of emoji to buildkite test namesRobb Kidd2020-04-271-34/+34
|/ / / | | | | | | | | | Signed-off-by: Robb Kidd <robb@thekidds.org>
* | | Bump version to 16.0.254 by Chef Expeditorv16.0.254Chef Expeditor2020-04-277-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9757 from chef/lcg/git-func-test-fixTim Smith2020-04-271-6/+0
|\ \ \ | | | | | | | | Remove git func test for upstream
| * | | Remove git func test for upstreamLamont Granquist2020-04-271-6/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output of this command seems to vary too much over different git versions to make it reliable and actually work. We should find something here that works, but determining what git commands to use which are stable for parsing can be very difficult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Bump version to 16.0.253 by Chef Expeditorv16.0.253Chef Expeditor2020-04-277-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9750 from chef/auto-generate-resource-docsTim Smith2020-04-278-254/+213
|\ \ \ | |/ / |/| | Updates for auto generated docs
| * | Add documentation descriptions to multiple resourcesauto-generate-resource-docsTim Smith2020-04-274-36/+45
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Don't add the weight to the yaml anymoreTim Smith2020-04-271-9/+0
| | | | | | | | | | | | | | | | | | It turns out if you don't add this they're just alphabetical which is what we were trying to do anyways. Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Chefstyle fixesTim Smith2020-04-271-31/+29
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Add some missing default descriptionsTim Smith2020-04-273-4/+6
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Better handle the default valuesTim Smith2020-04-271-0/+10
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Print out strings not symbols and skip deprecated propertiesTim Smith2020-04-271-8/+13
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Update the skip listTim Smith2020-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | scm is gone mac_user is new Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Start the weight at 70 to match the docs siteTim Smith2020-04-271-2/+2
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Make sure the description list is an arrayTim Smith2020-04-271-1/+1
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Enable the multipackage flag for more package managersTim Smith2020-04-271-1/+1
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Produce proper markdown in the example blockTim Smith2020-04-271-1/+0
| | | | | | | | | | | | | | | | | | The hugo code wraps this automatically Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Add "nil" to types list.Pete Higgins2020-04-271-1/+1
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Add code to handle properties only set in docs on a few resources.Pete Higgins2020-04-271-5/+97
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Update more things.Pete Higgins2020-04-271-20/+61
| | | | | | | | | | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
| * | Start the conversinon of moving to YAML generation for docsTim Smith2020-04-271-242/+54
| | | | | | | | | | | | | | | | | | | | | The .rst files are no more on the site. We now parse a yml file in hugo. Signed-off-by: Tim Smith <tsmith@chef.io> Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* | | Bump version to 16.0.252 by Chef Expeditorv16.0.252Chef Expeditor2020-04-277-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9753 from chef/disable_windows_testTim Smith2020-04-271-10/+11
|\ \ \ | | | | | | | | Disable the windows_exec test for now
| * | | Disable the windows_exec test for nowTim Smith2020-04-271-10/+11
|/ / / | | | | | | | | | | | | | | | | | | | | | This is breaking habitat and 32bit windows builds for now. It is 100% an issue, but it's always been an issue. For now we need a build and we'll track down those larger issues in future builds. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Merge pull request #9752 from ↵Tim Smith2020-04-274-11/+24
|\ \ \ | |/ / |/| | | | | | | | chef/robb/check-interstitial-test-command-successes [CI] add exitstatus checks after bare commands in PowerShell scripts
| * | add exitstatus checks after bare commands in PowerShell scriptsRobb Kidd2020-04-274-11/+24
|/ / | | | | | | | | | | | | Need these so the PowerShell scripts will exit when bare commands fail. Otherwise the build just keeps truckin' and the errors just pile up. Signed-off-by: Robb Kidd <robb@thekidds.org>
* | Bump version to 16.0.251 by Chef Expeditorv16.0.251Chef Expeditor2020-04-277-19/+20
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #9749 from chef/mp/CHEF-9639Tim Smith2020-04-272-5/+5
|\ \ | | | | | | Update bcrypt_pbkdf to 1.1.0.rc1
| * | Update bcrypt_pbkdf to 1.1.0.rc1Marc A. Paradise2020-04-272-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides working ed25519 ssh support for Windows under Rubies 2.4-2.7. I'm submitting this with the RC gem instead of waiting for final release because because we don't have a timeline from the maintainer when the RC will be finalized. Part of this is because no decision as been made as to whether to do a major version bump for the gem. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* | | Bump version to 16.0.250 by Chef Expeditorv16.0.250Chef Expeditor2020-04-277-19/+20
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | | Merge pull request #9742 from chef/powershell_exec_bangTim Smith2020-04-273-1/+34
|\ \ \ | | | | | | | | Add powershell_exec! helper to make conversion from powershell_out! easier
| * | | Fix typo in specpowershell_exec_bangTim Smith2020-04-261-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Add error! specTim Smith2020-04-261-0/+10
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Add .error! for powershell_execTim Smith2020-04-262-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | This matches powershell_out and it's something we need to easily migrate resources to the new helper. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Note where the DLL source livesTim Smith2020-04-271-0/+1
| |/ / |/| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>