summaryrefslogtreecommitdiff
path: root/lib/chef
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Bump version of chef to 12.19.19 by Chef Versioner.v12.19.19Chef Versioner2017-02-091-1/+1
|
* Merge pull request #5793 from chef/lcg/data-collector-utf8massterTom Duffield2017-02-091-4/+3
|\ | | | | Sanitize UTF-8 data sent to Data Collector
| * sanitize utf8 data going to serverlcg/data-collector-utf8Lamont Granquist2017-02-081-2/+2
| | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> Signed-off-by: Tom Duffield <tom@chef.io>
| * remove unnecessary debug statementLamont Granquist2017-02-081-2/+1
| | | | | | | | | | | | pretty sure Chef::HTTP already debug logs requests Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version of chef to 12.19.18 by Chef Versioner.v12.19.18Chef Versioner2017-02-091-1/+1
| |
* | Bump version of chef to 12.19.17 by Chef Versioner.v12.19.17Chef Versioner2017-02-091-1/+1
| |
* | Merge pull request #5794 from ↵Thom May2017-02-091-6/+6
|\ \ | | | | | | | | | | | | biinari/fix/deprecated-chef-platform-methods-class-name Fix chef_platform_methods deprecation class name
| * | Fix chef_platform_methods deprecation class nameBill Ruddock2017-02-081-6/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deprecation warnings for Chef::Platform methods introduced in #5631 were logged as e.g. `"Class.set is deprecated"` instead of `"Chef::Platform.set is deprecated"` This gets correct class name for message and adds unit specs to cover the expected deprecation messages. Unfortunately for these specs, some of these methods use each other, resulting in multiple warnings. I have put an expectation for each of these to avoid masking any other deprecations. Signed-off-by: Bill Ruddock <bill.ruddock@gmail.com>