summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Initial habitat planadamhjk/habitatAdam Jacob2016-12-214-0/+118
| | | | | | | | | | | | | | | This is a simple initial habitat plan. It creates a chef-client service, which uses chef-solo to run cookbooks that are located in the default cache location. To build it yourself: * Install habitat * `hab studio build` You'll wind up with a habitat artifact in `results`. Signed-off-by: Adam Jacob <adam@chef.io>
* Bump version of chef to 12.18.9 by Chef Versioner.v12.18.9Chef Versioner2016-12-215-10/+10
|
* Merge pull request #5671 from chef/lcg/oopsLamont Granquist2016-12-211-1/+1
|\ | | | | fix master breakage
| * fix master breakagelcg/oopsLamont Granquist2016-12-211-1/+1
| | | | | | | | | | | | pressed merged too fast Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 12.18.8 by Chef Versioner.v12.18.8Chef Versioner2016-12-215-10/+10
| |
* | Merge pull request #5669 from chef/lcg/bump-ruby-versionsLamont Granquist2016-12-211-25/+25
|\ \ | |/ |/| bump ruby versions in travis
| * bump ruby versions in travisLamont Granquist2016-12-211-25/+25
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 12.18.7 by Chef Versioner.v12.18.7Chef Versioner2016-12-215-10/+10
| |
* | Merge pull request #5670 from chef/lcg/numericpredicateLamont Granquist2016-12-217-8/+8
|\ \ | |/ |/| Style/NumericPredicate comparison style
| * Style/NumericPredicate comparison stylelcg/numericpredicateLamont Granquist2016-12-217-8/+8
|/ | | | | | | | | | | | | Apparently rubocop thinks the default behavior should be that we have to rewrite every use of `foo == 0` into `foo.zero?` which is a big pile of NOPE for me. After discovering that `.zero?` is actually slower, I'd prefer to go the other direction. Same for `positive?` and `negative?`. These are the only uses of `zero?` in the chef/chef codebase, while I'm pretty sure the inverse rule would touch nearly every file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 12.18.6 by Chef Versioner.v12.18.6Chef Versioner2016-12-215-10/+10
|
* Merge pull request #5666 from chef/lcg/deprecate-run-commandLamont Granquist2016-12-215-52/+70
|\ | | | | formally deprecate run_command
| * fix unnecessary quoting of argslcg/deprecate-run-commandLamont Granquist2016-12-202-3/+3
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * fix groupadd specs and modernizeLamont Granquist2016-12-202-50/+48
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * remove run_command from groupaddLamont Granquist2016-12-202-3/+12
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * formally deprecate run_commandLamont Granquist2016-12-202-0/+11
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 12.18.5 by Chef Versioner.v12.18.5Chef Versioner2016-12-215-10/+10
| |
* | Merge pull request #5667 from chef/lcg/remove-chef-provisioningLamont Granquist2016-12-203-23/+7
|\ \ | | | | | | remove chef-provisioning-aws from travis
| * | manually revert irrelevant bumpsLamont Granquist2016-12-202-5/+5
| | | | | | | | | | | | | | | | | | again IDK what is breaking travis Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | revert the bump to chef-serverLamont Granquist2016-12-201-1/+1
| | | | | | | | | | | | | | | | | | IDK why it is failing Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | remove chef-provisioning-awslcg/remove-chef-provisioningLamont Granquist2016-12-204-29/+13
|/ / | | | | | | | | | | blocks testing on ruby 2.4 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | ninja add a note about this callLamont Granquist2016-12-201-0/+7
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 12.18.4 by Chef Versioner.v12.18.4Chef Versioner2016-12-195-10/+10
|
* Merge pull request #5648 from chef/ssd/chef-fs-n-squaredLamont Granquist2016-12-191-1/+8
|\ | | | | [cheffs] Don't iterate parent object on exist? call
| * [cheffs] Don't iterate parent object on exist? callssd/chef-fs-n-squaredSteven Danna2016-12-131-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, this code determined if an object existed by doing the following: parent.children.any? { |child| child.api_child_name == api_child_name } For organizations and object types with a small number of total objects, this wasn't problematic; however, it has very bad worst-case behavior. For example, if a user was attempting to restore an organization with 30k client records to an empty organization, each client upload would do the following: 1. Run GET /clients 2. Iterate the list returned in (1) normalizing the clients names along the way. 3. Upload the client via POST when exist? returned false. When the clients don't exist, this means step (2) will always iterate over every member returned in step (1). By the time you get into the 1000s of clients, this iteration dominates the running time of the process. For instance, consider the following ruby profile data: Measure Mode: wall_time Thread ID: 16939380 Fiber ID: 22163920 Total: 109.860468 Sort by: self_time %self total self wait child calls name 26.83 29.475 29.475 0.000 0.000 500 <Class::IO>#select 8.60 38.876 9.446 0.000 29.430 464125 <Class::Chef::ChefFS::PathUtils>#join 7.02 12.226 7.717 0.000 4.509 928750 Chef::ChefFS::FileSystem::ChefServer::RestListEntry#api_child_name 6.79 7.459 7.459 0.000 0.000 930250 String#gsub 5.31 5.834 5.834 0.000 0.000 2320625 <Class::Chef::ChefFS::PathUtils>#regexp_path_separator 3.33 3.654 3.654 0.000 0.000 500 OpenSSL::X509::Store#set_default_paths 3.28 42.482 3.606 0.000 38.876 464125 Chef::ChefFS::FileSystem::BaseFSObject#initialize 2.95 3.244 3.244 0.000 0.000 930250 <Class::File>#extname 2.29 48.421 2.513 0.000 45.908 483375 *Class#new 38 wall clock seconds spent in PathUtils.join (part of the name normalization during the list walk) Note, an alternative might be to skip the exist? check completely, opting to blindly POST and then rescuing the 409 and retry with a PUT. Experimentation shows that PathUtils.join can also be improved substantially; however, I'll leave those for a follow-up PR. Signed-off-by: Steven Danna <steve@chef.io>
* | Bump version of chef to 12.18.3 by Chef Versioner.v12.18.3bp-423/stunnel-in-rhelChef Versioner2016-12-165-10/+11
| |
* | Merge pull request #5630 from ↵Adam Leff2016-12-162-1/+8
|\ \ | | | | | | | | | | | | chef/adamleff/ipo-500/fix-data-collector-org-parsing Fix Data Collector organization parsing regex
| * | update org name regex to match Chef Server'sadamleff/ipo-500/fix-data-collector-org-parsingAdam Leff2016-12-071-1/+1
| | | | | | | | | | | | Signed-off-by: Adam Leff <adam@leff.co>
| * | Fix Data Collector organization parsing regexAdam Leff2016-12-072-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The regex used to pluck the Chef Server Organization from the chef_server_url config value did not permit hyphens in org names even though they are allowed by Chef Server. This caused org names to get incorrectly truncated when sending the payload to Data Collector servers. Re: Chef bug IPO-500 Signed-off-by: Adam Leff <adam@leff.co>
* | | Bump version of chef to 12.18.2 by Chef Versioner.v12.18.2Chef Versioner2016-12-145-10/+10
| | |
* | | Merge pull request #5647 from chef/ruby24Lamont Granquist2016-12-141-2/+2
|\ \ \ | | | | | | | | Swap rbx testing in Travis for Ruby head
| * | | Replace rbx with ruby-head in Travisruby24Tim Smith2016-12-131-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | rbx is failing to install in travis as rvm wants to install via binary and there isn't a binary install available. Swap for Ruby head instead so we can test on Ruby 2.4 Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Bump version of chef to 12.18.1 by Chef Versioner.v12.18.1Chef Versioner2016-12-145-11/+49
| | |
* | | Merge pull request #5646 from chef/bump-minor-12-8Scott Christopherson2016-12-145-33/+71
|\ \ \ | | | | | | | | Bump minor version to 12.18
| * | | Bump minor version to 12.18bump-minor-12-8Scott Christopherson2016-12-145-33/+71
|/ / / | | | | | | | | | Signed-off-by: Scott Christopherson <scott@chef.io>
* | | Bump version of chef to 12.17.58 by Chef Versioner.v12.17.58Chef Versioner2016-12-135-10/+10
| | |
* | | Merge pull request #5635 from chef/afiune/dont-fail-if-changelog-failsSalim Afiune2016-12-131-1/+1
|\ \ \ | | | | | | | | Dont fail the version bump if changelog fails
| * | | Dont fail the version bump if changelog failsafiune/dont-fail-if-changelog-failsSalim Afiune2016-12-131-1/+1
|/ / / | | | | | | | | | Signed-off-by: Salim Afiune <afiune@chef.io>
* | | Bump version of chef to 12.17.57 by Chef Versioner.v12.17.57Chef Versioner2016-12-135-10/+10
| | |
* | | Merge pull request #5628 from chef/tas50/notesTim Smith2016-12-131-0/+6
|\ \ \ | |/ / |/| | Add multiple client/nodes knife delete to release notes
| * | Add multiple client/nodes knife delete to release notestas50/notesTim Smith2016-12-071-0/+6
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Bump version of chef to 12.17.56 by Chef Versioner.v12.17.56Chef Versioner2016-12-136-36/+12
| | |
* | | Merge pull request #5636 from chef/lcg/remove-chef-platform-handler-classBryan McLellan2016-12-134-46/+22
|\ \ \ | | | | | | | | remove Chef::Platform::HandlerMap
| * | | remove Chef::Platform::HandlerMaplcg/remove-chef-platform-handler-classLamont Granquist2016-12-084-46/+22
| | |/ | |/| | | | | | | | | | | | | seems like an entirely unnecessary level of indirection Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Bump version of chef to 12.17.55 by Chef Versioner.v12.17.55Chef Versioner2016-12-125-26/+19
| | |
* | | Merge pull request #5645 from andrewjamesbrown/masterLamont Granquist2016-12-121-2/+2
|\ \ \ | | | | | | | | Ensure node.docker? returns boolean
| * | | Make docker? return booleanAndrew Brown2016-12-121-2/+2
|/ / / | | | | | | | | | | | | | | | Trivial change to ensure node.docker? returns either true or false. Signed-off-by: Andrew Brown <andrew.j.brown@gmail.com>
* | | Bump version of chef to 12.17.54 by Chef Versioner.v12.17.54Chef Versioner2016-12-125-10/+14
| | |
* | | Merge pull request #5632 from chef/tduffield/use-dokken-in-announcementsBryan McLellan2016-12-125-19/+13
|\ \ \ | | | | | | | | Update Release Announcements; Keep Dockerfile up-to-date
| * | | Pull kitchen language out of release announcementstduffield/use-dokken-in-announcementsTom Duffield2016-12-082-35/+0
| | | | | | | | | | | | | | | | Signed-off-by: Tom Duffield <tom@chef.io>