summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* protect against nil response bodylcg/debug-log-bad-json-payloadLamont Granquist2017-03-021-1/+3
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* truncate long response bodies in debug outputLamont Granquist2017-03-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add debug long for non-JSON responseLamont Granquist2017-03-021-1/+2
| | | | | | we should probably raise (?) but this at least helps us debug. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 13.0.1 by Chef Versioner.v13.0.1v12.19.38Chef Versioner2017-03-011-1/+1
|
* raise on cookbook self-dependencyLamont Granquist2017-02-281-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove policyfile fallback API for old Chef ServersLamont Granquist2017-02-281-6/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13: Remove Chef::PolicyBuilder::ExpandNodeObject#load_nodeLamont Granquist2017-02-281-28/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13: relative creates paths in the execute resource requires a cwdLamont Granquist2017-02-282-4/+5
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13: Remove supports API from all user providersLamont Granquist2017-02-2813-60/+27
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef 13: script resources (and e.g. bash) require 'code' propertyLamont Granquist2017-02-281-26/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13: chef_gem no longer runs at compile time by defaultLamont Granquist2017-02-283-28/+6
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef 13: remove unused path property from execute resourceLamont Granquist2017-02-281-11/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Chef-13 break: script and all its subclasses now errors on 'command' propertyLamont Granquist2017-02-281-8/+4
| | | | | | | | | | | | | This was always a coding bug. The `command` property is only used internally but is exposed for users to twiddle because script subclasses execute. Thus this still violates Liskov Substitution and this is not an is-a relationship where inheritance might be appropriate, because the script resource should /use/ the execute resource and not /be an/ execute resource. The more you know... Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix recipes to always have duplicated default recipesLamont Granquist2017-02-281-6/+8
| | | | | | | IMO this is what users really want. It looks like we never really fixed it right though. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump chef version to 13.0.0Lamont Granquist2017-02-281-1/+1
| | | | | | | | | | | This requires pulling in master of several gems, bumps all the other gems, plus pulls in new kitchen-appbundle-updater which supports pulling master of ohai. Note that kitchen-windows is disabled because it turns out it was broken and red on 12.19 all along. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 12.19.39 by Chef Versioner.v12.19.39Chef Versioner2017-02-271-1/+1
|
* Bump version of chef to 12.19.38 by Chef Versioner.v12.19.38Chef Versioner2017-02-271-1/+1
|
* Bump version of chef to 12.19.37 by Chef Versioner.v12.19.37Chef Versioner2017-02-231-1/+1
|
* Merge pull request #5840 from chef/er-478/fips_bootstrapTyler Ball2017-02-231-7/+8
|\ | | | | Require chef/version when trying to read it
| * Require chef/version when trying to read iter-478/fips_bootstrapTyler Ball2017-02-231-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a node is bootstrapped in FIPS mode and then tries to run a chef-client run it gets the following error: ``` STDERR: /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-config-12.18.31/lib/chef-config/workstation_config_loader.rb:163:in `rescue in apply_config': You have an error in your config file /var/opt/delivery/workspace/.chef/knife.rb (ChefConfig::ConfigurationError) NameError: uninitialized constant Chef /var/opt/delivery/workspace/.chef/knife.rb:2:in `eval' /var/opt/delivery/workspace/.chef/knife.rb:2:in `eval' /var/opt/delivery/workspace/.chef/knife.rb:2:in `from_string' ``` Signed-off-by: tyler-ball <tyleraball@gmail.com>
* | Bump version of chef to 12.19.36 by Chef Versioner.v12.19.36Chef Versioner2017-02-231-1/+1
| |
* | Use shellsplit for apt_package optionsMark Harrison2017-02-231-4/+2
|/ | | | | | | | This correctly deals with quotes and so on in package options. Fixes #5836 Signed-off-by: Mark Harrison <mark@mivok.net>
* Bump version of chef to 12.19.35 by Chef Versioner.v12.19.35Chef Versioner2017-02-221-1/+1
|
* Bump version of chef to 12.19.34 by Chef Versioner.v12.19.34Chef Versioner2017-02-171-1/+1
|
* Bump version of chef to 12.19.33 by Chef Versioner.v12.19.33Chef Versioner2017-02-161-1/+1
|
* Bump version of chef to 12.19.32 by Chef Versioner.v12.19.32Chef Versioner2017-02-161-1/+1
|
* Merge pull request #5818 from chef/lcg/remove-ivarsLamont Granquist2017-02-1631-640/+640
|\ | | | | cleans up the remaining new/current_resource ivars in remaining provider code
| * cleans up the remaining new/current_resource ivarslcg/remove-ivarsLamont Granquist2017-02-1531-640/+640
| | | | | | | | | | | | switches from using ivars to accessors for getters Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 12.19.31 by Chef Versioner.v12.19.31Chef Versioner2017-02-151-1/+1
|/
* Bump version of chef to 12.19.30 by Chef Versioner.v12.19.30Chef Versioner2017-02-141-1/+1
|
* Merge pull request #5816 from chef/lcg/yum-coerce-array-attributesLamont Granquist2017-02-142-4/+13
|\ | | | | coerce immutable arrays to normal arrays in the yum_package resource
| * coerce immutable arrays to normal arrayslcg/yum-coerce-array-attributesLamont Granquist2017-02-142-4/+13
| | | | | | | | | | | | | | as noted in comments this works around bugginess in the yum provider that require a major refactor to fix. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 12.19.29 by Chef Versioner.v12.19.29Chef Versioner2017-02-141-1/+1
| |
* | Make it easier to have a versioned factorytm/versioned_apiThom May2017-02-142-14/+38
| | | | | | | | | | | | | | classes providing an API should include VersionedAPI, whilst the factory class includes VersionedAPIFactory. Signed-off-by: Thom May <thom@may.lt>
* | Beginning of automatic API version detectionThom May2017-02-144-0/+137
| | | | | | | | | | | | | | | | | | When we make a request to a chef server, we capture the minimum and maximum support API versions and allow them to be queried. We then provide some infrastructure for making decisions on which class should be used, in a middleware-ish mechanism. Signed-off-by: Thom May <thom@chef.io>
* | Bump version of chef to 12.19.28 by Chef Versioner.v12.19.28Chef Versioner2017-02-141-1/+1
|/
* Bump version of chef to 12.19.27 by Chef Versioner.v12.19.27Chef Versioner2017-02-141-1/+1
|
* fix specs: RedundantReturn, RedundantSelf, RedundantBeginLamont Granquist2017-02-13132-814/+690
| | | | | | department of redundancy department Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 12.19.26 by Chef Versioner.v12.19.26Chef Versioner2017-02-121-1/+1
|
* package provider cleanuplcg/package-cleanupLamont Granquist2017-02-1140-669/+709
| | | | | | | | | - cleans up a lot of ivar usage - converts most providers to shell_out_compact_timeout! - almost deprecates a few APIs, but can't quite yet - windows providers need mixlib-shellout to take an argv Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version of chef to 12.19.25 by Chef Versioner.v12.19.25Chef Versioner2017-02-111-1/+1
|
* Merge pull request #5807 from chef/multisshTim Smith2017-02-112-142/+0
|\ | | | | Require net-ssh-multi 1.2.1 and remove our monkeypatch
| * Require net-ssh-multi 1.2.1 and remove our monkeypatchTim Smith2017-02-102-142/+0
| | | | | | | | | | | | The fix was merged upstream and released in 1.2.1 Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version of chef to 12.19.24 by Chef Versioner.v12.19.24Chef Versioner2017-02-111-1/+1
| |
* | Bump version of chef to 12.19.23 by Chef Versioner.v12.19.23Chef Versioner2017-02-111-1/+1
| |
* | Bump version of chef to 12.19.22 by Chef Versioner.v12.19.22Chef Versioner2017-02-101-1/+1
| |
* | Bump version of chef to 12.19.21 by Chef Versioner.v12.19.21Chef Versioner2017-02-101-1/+1
| |
* | Keep variable in initial order when sorting propertiestduffield/suppress-sensitive-propertiesTom Duffield2017-02-101-8/+14
| | | | | | | | Signed-off-by: Tom Duffield <tom@chef.io>
* | Suppress sensitive properties from resource outputTom Duffield2017-02-101-5/+12
|/ | | | Signed-off-by: Tom Duffield <tom@chef.io>
* Bump version of chef to 12.19.20 by Chef Versioner.v12.19.20Chef Versioner2017-02-101-1/+1
|