summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Get policy_name/group from node object rather than Chef::Config for run_end ↵jjh/policy_collector_fieldsJosh Hudson2017-03-311-2/+2
| | | | | | data-collector message. Signed-off-by: Josh Hudson <jhudson@chef.io>
* YUNO like cookstyle, Travis?Josh Hudson2017-03-301-63/+63
| | | | Signed-off-by: Josh Hudson <jhudson@chef.io>
* Add unit tests for run_end message in policy mode. Also some random ↵Josh Hudson2017-03-301-33/+170
| | | | | | cookstyle cleanup in the file. Signed-off-by: Josh Hudson <jhudson@chef.io>
* Add policy_name and policy_group indexes to converge message sent to ↵Josh Hudson2017-03-301-0/+2
| | | | | | data-collector Signed-off-by: Josh Hudson <jhudson@chef.io>
* Bump version of chef to 13.0.78 by Chef Versioner.v13.0.78Chef Versioner2017-03-305-16/+10
|
* Merge pull request #5968 from chef/lcg/bump-acceptance-gemsLamont Granquist2017-03-301-10/+11
|\ | | | | bumping acceptance gems
| * bumping acceptance gemsLamont Granquist2017-03-301-10/+11
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 13.0.77 by Chef Versioner.v13.0.77Chef Versioner2017-03-305-16/+15
|
* Merge pull request #5966 from Happycoil/fix_powershell_script_guardLamont Granquist2017-03-301-1/+1
|\ | | | | set default guard_interpreter to powershell_script
| * set default guard_interpreter to powershell_scriptTor Magnus Rakvåg2017-03-301-1/+1
|/ | | | Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
* Bump version of chef to 13.0.76 by Chef Versioner.v13.0.76Chef Versioner2017-03-305-10/+17
|
* Merge pull request #5920 from chef/lcg/remove-descendants-tracker-1Lamont Granquist2017-03-294-127/+7
|\ | | | | Chef-13: remove more deprecated provider_resolver code
| * bump deps, mostly for poiseLamont Granquist2017-03-291-6/+6
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * Chef-13: remove more deprecated provider_resolver codeLamont Granquist2017-03-293-121/+1
| | | | | | | | | | | | | | I think this nukes descendants tracker, although might need to clean it up in a few more spots. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 13.0.75 by Chef Versioner.v13.0.75Chef Versioner2017-03-305-10/+10
| |
* | Merge pull request #5964 from chef/lcg/solaris-ruby24-fixLamont Granquist2017-03-291-3/+3
|\ \ | | | | | | fix ruby-2.4 func link tests on solaris 11
| * | fix commentLamont Granquist2017-03-291-2/+2
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | ruby-2.4 on solaris 11 behaves the same way hereLamont Granquist2017-03-291-3/+3
|/ / | | | | | | | | | | | | i suspect linux is the buggy one and everyone else is posix compliant... Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 13.0.74 by Chef Versioner.v13.0.74Chef Versioner2017-03-295-11/+10
| |
* | Merge pull request #5963 from chef/lcg/bump-omnibusLamont Granquist2017-03-291-1/+1
|\ \ | | | | | | pull omnibus-software fix for windows builds
| * | pull omnibus-software fix for windows buildsLamont Granquist2017-03-291-1/+1
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Bump version of chef to 13.0.73 by Chef Versioner.v13.0.73Chef Versioner2017-03-295-11/+10
| | |
* | | Merge pull request #5962 from chef/lcg/bump-omnibusLamont Granquist2017-03-291-3/+3
|\ \ \ | |/ / | | / | |/ |/| bumping omnibus lockfile
| * bumping omnibus lockfileLamont Granquist2017-03-291-3/+3
|/ | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 13.0.72 by Chef Versioner.v13.0.72Chef Versioner2017-03-295-10/+10
|
* Merge pull request #5952 from chef/lcg/make-action-class-a-classLamont Granquist2017-03-293-22/+35
|\ | | | | Chef-13: Make ActionClass a class
| * Make ActionClass a classLamont Granquist2017-03-293-22/+35
| | | | | | | | | | | | | | | | | | | | | | | | since any ActionClass literally is-a Chef::Provider it should just use inheritance and then we don't have to use the hacky hooks for class methods in modules and it becomes more clear from the ActionClass source what it is and what it does. Bonus starts the deprecation of properties being injected into the provider namespace. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #5958 from chef/lcg/ruby-24-windows-nokogiriLamont Granquist2017-03-293-16/+15
|\ \ | | | | | | disable nokogiri on windows for now
| * | disable shipping nokogiri on windows for nowLamont Granquist2017-03-293-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nokogiri does not have a ruby-2.4 release for windows this is slightly complicated because we still need nokogiri in the Gemfile.lock for travis. i'm starting to think we should have a Gemfile.travis and Gemfile.travis.lock or something and stop using groups for that. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #5960 from chef/tm/retryable_apiThom May2017-03-299-11/+132
|\ \ \ | |_|/ |/| | Retry API requests if using an unsupported version
| * | Retry API requests if using an unsupported versiontm/retryable_apiThom May2017-03-298-6/+102
| | | | | | | | | | | | Signed-off-by: Thom May <thom@chef.io>
| * | Allow the best API version to be queriedThom May2017-03-285-5/+30
| | | | | | | | | | | | | | | | | | Also tidy up in the face of the real world. Signed-off-by: Thom May <thom@chef.io>
* | | Bump version of chef to 13.0.71 by Chef Versioner.v13.0.71Chef Versioner2017-03-295-10/+10
| |/ |/|
* | Merge pull request #5957 from chef/lcg/solaris11-compiler-flagsLamont Granquist2017-03-282-6/+11
|\ \ | | | | | | bump _XOPEN_SOURCE to 600 for ruby 2.4 on Solaris
| * | bump _XOPEN_SOURCE to 600 for ruby 2.4 on SolarisLamont Granquist2017-03-282-6/+11
| | | | | | | | | | | | | | | | | | unbreaks builds. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Bump version of chef to 13.0.70 by Chef Versioner.v13.0.70Chef Versioner2017-03-285-10/+10
|/ /
* | Merge pull request #5954 from chef/lcg/bump-lockfileLamont Granquist2017-03-289-83/+91
|\ \ | | | | | | bumping everything
| * | bumping again mostly to get chef-zeroLamont Granquist2017-03-284-21/+21
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | comment out problematic testLamont Granquist2017-03-281-6/+6
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | bumping everythingLamont Granquist2017-03-288-76/+84
|/ / | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 13.0.69 by Chef Versioner.v13.0.69Chef Versioner2017-03-285-17/+11
| |
* | Merge pull request #5936 from chef/tm/rubby_241Lamont Granquist2017-03-286-42/+44
|\ \ | |/ |/| Use the ruby 2.4.1 release
| * drop 2.2 support + testing / bump tests to 2.4.1Lamont Granquist2017-03-282-28/+23
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * bump ruby to 2.4.1Lamont Granquist2017-03-285-14/+21
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 13.0.68 by Chef Versioner.v13.0.68Chef Versioner2017-03-285-17/+15
| |
* | Merge pull request #5946 from chef/lcg/fix-action-classLamont Granquist2017-03-273-64/+88
|\ \ | |/ |/| Fix action class weirdness in Chef-13
| * Fix Chef-13 action_class bug and cleanupLamont Granquist2017-03-273-64/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old action_class code was doing some magical stuff with the provider accessor in order to determine if the class was supposed to be a custom resource or not and have the action_class autovivifying accessor return nil in cases when the resource wasn't a custom resource and implementing inheritance by walking back up the tree in ways that were difficult to grok. This removes the magic from the provider so that there's no longer any accessor that magically short-circuits to nil if the resource is not supposed to be a custom resource. There is now a simple inherited API for `Chef::Resource.custom_resource?` which just defines if the class is a custom resource or not. Since both `action` and `action_class` call `define_action_class` they both wind up setting this boolean on the class, which is then inherited to subclasses automatically, which eliminates the need to walk up the hierarchy. The superclass.respond_to?(:action_class) checks have also been rendered unnecessary by removing the code that walked up the inheritance hierarchy and also because Chef::Resource is never going to be a custom resource itself, so will never call `define_action_class` so from inside of `define_action_class` you can always rely on the superclass being a resource and implementing `custom_resource?` and `action_class`. The wiring for picking the provider is now moved explicitly to the ProviderResolver -- even though custom resources hardcode a 1:1 resource-to-provider mapping. This reads much clearer to me than the magical wiring to the provider accessor off of the instance. The bug that this fixes was that the way the magical accessor nil-or-action_class was implemented the old way of defining action helpers with class_eval broke: ```ruby action_class.class_eval << EOM def a "foo" end EOM ``` If that came before any action_class-with-a-block or action declaration and the resource did not inherit from another custom resource then the action_class would not be created and it would return nil, which was an API which the magical wiring in the provider accessor required. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 13.0.67 by Chef Versioner.v13.0.67Chef Versioner2017-03-275-10/+21
| |
* | Merge pull request #5941 from ↵Salim Afiune2017-03-272-4/+177
|\ \ | | | | | | | | | | | | chef/afiune/COOL-691/make-resource-reporter-smarter-to-access-identity Make ResourceReporter smarter to get resource identity and state
| * | Make ResourceReporter smarter to get resource identity and stateSalim Afiune2017-03-242-4/+177
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lets make the ResourceReporter smarter, we will try to get the identity and state (after and before) of the resource but if we can't because of an Exception, lets sends a message to the data collector containing a static resource identity since we were unable to generate a proper one. The problem is coming from the ResourceReporter, when it is trying to report back the resource identity and state, it is using basic methods from the Base class that should be secure to call from eny subscriber. This is actually not a bug since Chef is doing the right thing, that is to throw an error when the identity property is nil (or is not the right kind that we configured for) so, rather than making identity properties smarter for lazy evaluation we are going to make the ResourceReporter a bit smarter so that it doesn't explode when the use configured a resource with a wrong identity property. Closes https://github.com/chef/chef/issues/5490 Signed-off-by: Salim Afiune <afiune@chef.io>