summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* RFC-102: Deprecation warning in resourcestm/deprecated_propertiesThom May2018-03-241-0/+24
| | | | | | | | | | | * `deprecated_property_alias` allows the resource author to provide transition from old properties to new ones with a deprecation warning. * The `deprecated` option on a property emits a deprecation warning. * The `deprecated` method on a resource takes a message, but does not yet emit a deprecation warning. Signed-off-by: Thom May <thom@chef.io>
* Rename to windows_ad_joinTim Smith2018-03-221-2/+2
| | | | | | This allows us to have windows_ad_* in the future Signed-off-by: Tim Smith <tsmith@chef.io>
* Require the domain_name to be a FQDNTim Smith2018-03-221-0/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Handle reboots in Chef and provide finer grained control of behaviorTim Smith2018-03-221-0/+7
| | | | | | Rename the property to reboot to align with Chef naming. Allow delayed, immediate, or never for reboot actions. Using the actions from reboot was pretty confusing so I used notification names which seems to lineup nicely. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add windows_adjoin resourceTim Smith2018-03-221-0/+34
| | | | | | Copied with permission from John Snow's win_ad cookbook. It's been reworked to not mess with dns servers and use powershell_out + sensitive. Some of those changes are getting pushed upstream, but the name is different and there's no expectation of compatibility here. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #7022 from chef/sysctlTim Smith2018-03-221-0/+56
|\ | | | | Add sysctl_param resource from the sysctl cookbook
| * Rename systctl_param to sysctlTim Smith2018-03-211-4/+4
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add sysctl_param resource from the sysctl cookbookTim Smith2018-03-211-0/+56
| | | | | | | | | | | | Copied from the cookbook with modifications made there Signed-off-by: Tim Smith <tsmith@chef.io>
* | sudo: Don't fail on FreeBSD. Turns out there's a .d directoryTim Smith2018-03-221-0/+5
| | | | | | | | | | | | I guess they use .d directory structures in sudo, but that's about it. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Fix the openssl resource spec namesfix_spec_namesTim Smith2018-03-212-0/+0
| | | | | | | | | | | | Simple rename Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #7023 from chef/lcg/rubocop-fixesLamont Granquist2018-03-213-3/+3
|\ \ | | | | | | rubocop fixes from engine bump to 0.54.0
| * | rubocop fixes from engine bump to 0.54.0lcg/rubocop-fixesLamont Granquist2018-03-213-3/+3
| |/ | | | | | | | | | | some cops got a little stricter. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Merge pull request #7016 from chef/tm/chef_guidThom May2018-03-215-1/+68
|\ \ | |/ |/| Save the node's UUID as an attribute
| * Save the node's UUID as an attributetm/chef_guidThom May2018-03-215-1/+68
| | | | | | | | | | | | | | We generate the UUID as part of the data collector report, but we didn't make that available to the node or the chef server otherwise. Signed-off-by: Thom May <thom@chef.io>
* | Update to the code from the homebrew 9.0 cookbookTim Smith2018-03-203-5/+75
| | | | | | | | | | | | This converts the Chef resources to shell_out and adds new properties for dealing with edge case installations. It also adds validation messaging / testing and lazy evals the stuff that uses the mixin. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add dmg_package, homebrew_cask, and homebrew_tap resourcesTim Smith2018-03-201-0/+35
| | | | | | | | | | | | Pull in resources from the dmg and homebrew cookbooks Signed-off-by: Tim Smith <tsmith@chef.io>
* | Remove Chef 12-isms from the apt_repository resourceTim Smith2018-03-201-3/+34
| | | | | | | | | | | | We set a lot of nil defaults and did coersions here that are no longer necessary. Since we did accept nil in a lot of these properties at one point we need to keep it so I wrote a note to future me about that. I also added some specs for the remaining coersion and the defaults. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Merge pull request #7000 from chef/repo_filenamesTim Smith2018-03-203-0/+12
|\ \ | | | | | | Fail with a warning if users specify apt/yum/zypper repos with slashes
| * | Fail with a warning if users specify apt/yum/zypper repos with slashesrepo_filenamesTim Smith2018-03-193-0/+12
| | | | | | | | | | | | | | | | | | We can't write out a filename like foo/bar.repo so we should properly warn the user if they try to give us that. There's probably other things, but this one makes particular sense for apt since people want to use the slash in PPA repo names. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Detect new "automatically" installed string in ZypperTim Smith2018-03-191-0/+8
|/ / | | | | | | | | | | | | | | | | | | This resolves issue #6836 which explains the issue in great detail. TLDR: Packages that are installed as deps on another package have a different string when you get info on them now. This updates the regex to detect both. Based on the zypper changelog I believe this was introduced in 1.13.17. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Add the ability to inject log objectstm/inject_logThom May2018-03-198-24/+27
| | | | | | | | | | | | meaning that we can have inheritable metadata Signed-off-by: Thom May <thom@chef.io>
* | Merge pull request #6995 from chef/btm/fix-lsa-heap-corruptionBryan McLellan2018-03-191-0/+36
|\ \ | | | | | | Fix regression in #6980, add functional tests
| * | Fix regression in #6980, add functional testsBryan McLellan2018-03-191-0/+36
| |/ | | | | | | | | | | | | | | The logging refactor in #6980 should have been a class variable. This fixes that. Also adds functional tests that would catch that and the original #6980 bug. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | Move subversion specific properties from scm to subversionscm_subversionTim Smith2018-03-172-11/+12
|/ | | | | | We actually set the defaults for these in the subversion property, but the actual properties are in scm. Move them to subversion since they are subversion specific. Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #6979 from chef/sudoTim Smith2018-03-161-0/+87
|\ | | | | Add the sudo resource from the sudo resource
| * Add the sudo resource from the sudo resourceTim Smith2018-03-151-0/+87
| | | | | | | | | | | | Copied as is with the new description fields added. Signed-off-by: Tim Smith <tsmith@chef.io>
* | el6 fixesLamont Granquist2018-03-151-2/+2
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | chefstyle fixLamont Granquist2018-03-151-1/+1
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add more tests, fix more subtle bugsLamont Granquist2018-03-151-0/+17
| | | | | | | | | | | | | | we support locking based on provides lines, and now test that and ensure that locking checks go through name resolution properly. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add a few lock/unlock tests and fix a bugLamont Granquist2018-03-151-0/+48
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix rebase issueLamont Granquist2018-03-151-3/+0
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix yum_cache arch options and use positional parametersLamont Granquist2018-03-151-10/+30
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | fix provider resolver specLamont Granquist2018-03-151-3/+2
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | add specs for YumCache fascadeLamont Granquist2018-03-151-0/+89
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Yum package provider rewriteLamont Granquist2018-03-1542-2468/+1056
|/ | | | | | squash and rebase of all the work Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #6969 from chef/tm/6851Thom May2018-03-153-45/+37
|\ | | | | update mount to use properties and fix 6851
| * Clean up mount provider teststm/6851Thom May2018-03-142-43/+2
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
| * update mount to use properties and fix 6851Thom May2018-03-142-7/+13
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
| * add failing test for labelled filesystemsThom May2018-03-141-2/+29
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | Remove the old knife help specmore_manpagesTim Smith2018-03-141-92/+0
|/ | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Revert "Knife should give a useful error when the chef_server_url isn't a ↵revert-6253-feat/5556Thom May2018-03-141-30/+0
| | | | chef server API"
* Merge pull request #6873 from chef/jcowie/data_collector_jsonLamont Granquist2018-03-131-1/+135
|\ | | | | Add output_locations functionality to data collector
| * Fix valid file path spec to work on WindowsJon Cowie2018-02-201-9/+2
| | | | | | | | Signed-off-by: Jon Cowie <jonlives@gmail.com>
| * Add output_locations functionality to data collectorJon Cowie2018-02-201-1/+142
| | | | | | | | | | | | This commit implements the recent changes to RFC-077, to support multiple output locations in the data collector. Signed-off-by: Jon Cowie <jonlives@gmail.com>
* | Merge pull request #6838 from chef/revert-6773-revert-6770-tm/ruby_25Lamont Granquist2018-03-121-1/+1
|\ \ | | | | | | Bump to ruby 2.5.0
| * | ruby-2.5 changesLamont Granquist2018-03-091-1/+1
| | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | | Merge pull request #6253 from jeunito/feat/5556Tim Smith2018-03-121-0/+30
|\ \ \ | | | | | | | | Knife should give a useful error when the chef_server_url isn't a chef server API
| * \ \ Merge branch 'master' into feat/5556Jose Asuncion2017-09-262-7/+12
| |\ \ \ | | | | | | | | | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * | | | fix chefstyleJose Asuncion2017-09-261-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * | | | Merge branch 'master' into feat/5556Jose Asuncion2017-09-2547-195/+1908
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>