summaryrefslogtreecommitdiff
path: root/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Logging consistency fixes.lcg/chef-16-logging-fixedLamont Granquist2020-04-271-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* [FIX DEPRECATION] with_clean_env is deprecatedDan Webb2020-04-183-4/+4
| | | | | | | clean_env is now unbundled Signed-off-by: Daniel Webb <dan.webb@damacus.io>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-133-3/+3
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Turn off a lot of noise in test runs.Ryan Davis2020-03-161-0/+1
| | | | | | | | | | + I don't know how ---color was ever parsed to begin with. + -fd results in >23k lines of output that nobody reads. + This output obscures ~800 lines of output that everyone should read and silence. + Turned off verbose in rspec rake task. It's huge and doesn't help anything. Signed-off-by: Ryan Davis <zenspider@chef.io>
* Update docs for forking the stable branchTim Smith2020-02-031-1/+1
| | | | | | Make sure the external tests continue to work. Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixesTim Smith2019-11-151-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve resource descriptions and the rake task for docs generationTim Smith2019-11-141-2/+10
| | | | | | Bring in a few more copy edits that were done on the website and improve the rake task so that it better creates docs that match the formatting we want. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-081-6/+8
| | | | | | | | | | | | | This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add more resource examples to the codebaseTim Smith2019-09-161-1/+4
| | | | | | I'm also adding these same examples to the docs. Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix Chef Client vs. Chef Infra Client logicTim Smith2019-08-081-1/+1
| | | | | | It helps to not pass a nil in Signed-off-by: Tim Smith <tsmith@chef.io>
* Improve the auto-generated docsTim Smith2019-08-081-10/+14
| | | | | | Formatting fixes and updates to the text to make the generated text match what's currently on the site. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove Travis / Jenkins config / docsTim Smith2019-07-311-1/+1
| | | | | | Update some of our build docs to reflect the current process. Nuke the old Travis config. We're Buildkite + appveyor only at this point. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add examples to the resourcesTim Smith2019-07-081-0/+1
| | | | | | | | | Add examples in markdown to the resources. We'll be using this on the docs site in the future and if we need to display it we can use tty-markdown which does a really nice job of displaying markdown in the terminal Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #8711 from chef/lcg/new-chefstyle2Lamont Granquist2019-07-082-5/+9
|\ | | | | More Chefstyle updates
| * Style/StringLiteralsInInterpolationLamont Granquist2019-07-051-4/+4
| | | | | | | | | | | | since we use double quotes, be consistent everywhere. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * Style/SymbolArrayLamont Granquist2019-07-021-1/+1
| | | | | | | | | | | | start enforcing using %i{} instead of arrays of symbols Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix Layout/EmptyLineAfterGuardClauseLamont Granquist2019-07-021-0/+4
| | | | | | | | | | | | | | i like this one, gives visual priority to returns or raises that are buried in the middle of things. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Chefstyle fixesbetter_docsTim Smith2019-07-071-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Fix more line endingsTim Smith2019-07-071-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Use the funky marketing names for Chef ClientTim Smith2019-07-071-6/+15
| | | | | | | | | | | | Also prevent more extra spaces Signed-off-by: Tim Smith <tsmith@chef.io>
* | Improve generation of docs site resource pagesTim Smith2019-07-071-58/+61
|/ | | | | | | | | 1) Fix the indentation 2) Avoid extra new lines 3) Show example data if we have it 4) Chef Infra Client vs. the Chef Infra Client Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixesTim Smith2019-06-261-3/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Rework the docs.rb script as a Rake taskTim Smith2019-06-261-0/+337
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Document what the run external command doesTim Smith2019-06-071-0/+6
| | | | | | Help out anyone stumbling upon this to know the backstory Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix the announce task to use the new Chef Infra Client nameTim Smith2019-05-061-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Adding in the license-acceptance flowtyler-ball2019-05-031-1/+5
| | | | | | | | | This adds a new feature to chef-client where users must accept the EULA before using the product. Users can accept the license by passing '--chef-license accept', setting ENV[CHEF_LICENSE]=accept or by running 'chef-client' and following the interactive prompt. Signed-off-by: tyler-ball <tball@chef.io>
* Remove the legacy maintainer filesTim Smith2019-04-231-211/+0
| | | | | | This process is being replaced with our new owners process as outlined in https://github.com/chef/chef-oss-practices Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the rake task to generate a pre-announcementTim Smith2019-03-112-45/+3
| | | | | | We don't do pre-releases anymore so there's no point in doing this. Signed-off-by: Tim Smith <tsmith@chef.io>
* add GEMFILE_MOD to pin ohai to github masterlcg/fix-external-testsLamont Granquist2018-10-261-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Properly capitalize PowerShell in descriptions and errorspowershellTim Smith2018-09-071-1/+1
| | | | | | It's PowerShell not Powershell. Our docs site had already been updated. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove the CBGBNathen Harvey2018-09-061-84/+0
| | | | | | See also https://github.com/chef/chef-rfc/pull/322 Signed-off-by: Nathen Harvey <nharvey@chef.io>
* cleanup old rake taskslcg/nuke-shitty-rake-tasksLamont Granquist2018-08-291-22/+2
| | | | | | | | we're calling scripts to call rake tasks to call scripts to call rake tasks to mostly execute shellcodes. this gets rid of at least 2 levels of indirection. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update release announcement templatesTim Smith2018-08-282-2/+2
| | | | | | | mixlib-install has been out long enough at this point we don't need to call it new or mention what version of DK originally shipped with it. Signed-off-by: Tim Smith <tsmith@chef.io>
* Update the announcement rake task with kitchen examplesannouncementTim Smith2018-08-243-1/+18
| | | | | | This was in DK before, but it made no sense there. This might convince some folks to test things when we cut a pre-release. Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove task to bump audit cookbook depsTim Smith2018-07-231-14/+0
| | | | | | This cookbook is gone and this causes this job to fail Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/MutableConstantLamont Granquist2018-07-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/PreferredHashMethodsLamont Granquist2018-07-022-6/+6
| | | | | | | absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/UnneededInterpolationLamont Granquist2018-07-021-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Style/HashSyntaxLamont Granquist2018-07-024-9/+9
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove the existing acceptance testing frameworkkill-acceptanceTim Smith2018-06-261-2/+0
| | | | | | | | We haven't used this framework for 2 major releases of Chef and as time goes on it's more and more likely we'll build something very different for testing. We 100% do need acceptance testing, but between dokken testing in Travis and the potential for more complex integration testing with build-kite I think we should do the proper cleanup and remove this code now. Signed-off-by: Tim Smith <tsmith@chef.io>
* test chef-zero against chef_fs in the chef/chef checkoutLamont Granquist2018-04-231-2/+6
| | | | | | goes red because we're really red here Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* require bundlerLamont Granquist2018-02-281-1/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Revert "splice git checkout of chef into external tests"Lamont Granquist2018-01-241-3/+0
| | | | This reverts commit 2865ca316e5b9512ffd8a7d784355e469a115717.
* splice git checkout of chef into external testsLamont Granquist2018-01-241-0/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* prepping for rubocop 0.52.1lcg/rubocop-0.52.1Lamont Granquist2018-01-172-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Remove the Gemfile.lock and Berksfile.lock for kitchen testsintegration_docsTim Smith2017-12-221-5/+0
| | | | | | We're probably going to see some more failures with this change, but that's a good thing. If we have a bad kitchen change or a bad cookbook change we'll know now earlier. Less impact == better. Signed-off-by: Tim Smith <tsmith@chef.io>
* Break out unit/integration/functional tests in travis and test chef-configTim Smith2017-12-201-1/+1
| | | | | | Add the chef-config unit tests to the unit testing group Signed-off-by: Tim Smith <tsmith@chef.io>
* Ensure that our maintainers are all syncedtm/update_maintainersThom May2017-08-311-3/+3
| | | | Signed-off-by: Thom May <thom@may.lt>
* Merge pull request #6287 from chef/tduffield/use-new-artifact-actionsTom Duffield2017-07-272-78/+0
|\ | | | | Update Expeditor config to use new Merge and Artifact Actions
| * Update Expeditor config to use new Merge and Artifact Actionstduffield/use-new-artifact-actionsTom Duffield2017-07-242-78/+0
| | | | | | | | | | | | | | | | | | | | Chef Expeditor now supports built in merge and artifact actions which allow us to reduce the burden of duplicating common processes across all our repositories. This change introduces several of these built_in functions, replacing functionality that was previously kept in our Rakefile. Signed-off-by: Tom Duffield <tom@chef.io>