summaryrefslogtreecommitdiff
path: root/lib/chef
Commit message (Collapse)AuthorAgeFilesLines
* ensure that providers inherit loggers from the run contextThom May2018-03-261-2/+9
| | | | Signed-off-by: Thom May <thom@chef.io>
* Merge pull request #7048 from chef/fix_windows_pagefileTim Smith2018-03-241-38/+19
|\ | | | | Remove path helpers from window_pagefile
| * Remove path helpers from window_pagefileTim Smith2018-03-231-38/+19
| | | | | | | | | | | | I backported locate_sysnative_cmd initially, but after chatting with Stuart this isn't something we need anymore. This removes it and instead uses wmic.exe directly, which in testing works just fine. This also removes the windows friendly path helper which is really just a gsub on the slashes. Instead I changed the coerce to get us what we need in terms of path formats. I copied this to a Windows 2016 box and it works fine with both formats of paths. I'm making this same change to the windows cookbook. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 14.0.163 by Expeditorv14.0.163Chef Expeditor2018-03-241-1/+1
| |
* | Merge pull request #6990 from chef/swapTim Smith2018-03-232-0/+210
|\ \ | |/ |/| Add swap_file resource from the swap cookbook
| * Use the newly built in sysctl resourceswapTim Smith2018-03-231-3/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Remove a Chef 13-ismTim Smith2018-03-231-6/+0
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Add swap_file resource form the swap cookbookTim Smith2018-03-232-0/+218
| | | | | | | | | | | | Copied as-is from the cookbook Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 14.0.162 by Expeditorv14.0.162Chef Expeditor2018-03-231-1/+1
| |
* | Bump version to 14.0.161 by Expeditorv14.0.161Chef Expeditor2018-03-231-1/+1
|/
* Bump version to 14.0.160 by Expeditorv14.0.160Chef Expeditor2018-03-231-1/+1
|
* Merge pull request #7038 from chef/sudo_whichTim Smith2018-03-232-7/+17
|\ | | | | Fix a few bugs in the sudo resource
| * Call the new method namesudo_whichTim Smith2018-03-221-1/+1
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Rename visudo_path -> visudo_binary and raise if the old one is usedTim Smith2018-03-221-2/+11
| | | | | | | | | | | | They are entirely different concepts and users of the old one would see visudo never work. This feature went in 11/2017 and was never documented or added to the changelog, but internally we used it and there are probably a few users. We can just remove it sometime in the future, but I suspect very few will ever be impacted by this. Signed-off-by: Tim Smith <tsmith@chef.io>
| * Make sure we return true in visudo_present helperTim Smith2018-03-221-2/+2
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Match order to cookbookTim Smith2018-03-221-3/+4
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Fix template to match the updated version in the cookbookTim Smith2018-03-221-1/+1
| | | | | | | | | | | | This fixes an issue when writing out env_keep only configs. Found this via a super test suite against 14.0.159 Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 14.0.159 by Expeditorv14.0.159Chef Expeditor2018-03-221-1/+1
| |
* | Merge pull request #6981 from chef/adjoinTim Smith2018-03-222-0/+91
|\ \ | | | | | | Add windows_adjoin resource
| * | Rename to windows_ad_joinTim Smith2018-03-222-4/+4
| | | | | | | | | | | | | | | | | | 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-2/+4
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Handle reboots in Chef and provide finer grained control of behaviorTim Smith2018-03-221-5/+13
| | | | | | | | | | | | | | | | | | 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-222-0/+81
| | | | | | | | | | | | | | | | | | 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>
* | | Bump version to 14.0.158 by Expeditorv14.0.158Chef Expeditor2018-03-221-1/+1
| | |
* | | Bump version to 14.0.157 by Expeditorv14.0.157Chef Expeditor2018-03-221-1/+1
|/ /
* | Merge pull request #7032 from chef/pr-6203Thom May2018-03-221-2/+6
|\ \ | | | | | | Suppress nested causes for sensitive exceptions
| * | Use a better (read: working) technique because I was totally wrong about $!.pr-6203Noah Kantrowitz2018-03-221-3/+6
| | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | Fix white space in commitJohn Snow2018-03-221-1/+1
| | | | | | | | | | | | Signed-off-by: John Snow <thelunaticscripter@outlook.com>
| * | Prevent shelled out command from execute resourceJohn Snow2018-03-222-7/+6
| | | | | | | | | | | | | | | | | | | | | Changes: - Revert proposed unless and instead incorporate proposed changes suggested by reviewers Signed-off-by: John Snow <thelunaticscripter@outlook.com>
| * | Fix incorrectly written unless statementJohn Snow2018-03-221-1/+1
| | | | | | | | | | | | Signed-off-by: John Snow <thelunaticscripter@outlook.com>
| * | Suppress nested causes for sensitive exceptionsJohn Snow2018-03-221-4/+6
| | | | | | | | | | | | | | | | | | This will prevent sensitive data from leaking into debug_stacktrace output. Signed-off-by: John Snow <thelunaticscripter@outlook.com>
* | | Bump version to 14.0.156 by Expeditorv14.0.156Chef Expeditor2018-03-221-1/+1
| | |
* | | Merge pull request #7022 from chef/sysctlTim Smith2018-03-222-0/+112
|\ \ \ | | | | | | | | Add sysctl_param resource from the sysctl cookbook
| * | | Fix the condition on the raise with unknown keysTim Smith2018-03-221-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Just remove the config file and reload sysctlsysctlTim Smith2018-03-211-19/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Still needs a bit of testing to see if there's a better way to do the reload, but here goes nothing Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Fixes from reviewTim Smith2018-03-211-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Rename systctl_param to sysctlTim Smith2018-03-212-6/+7
| | | | | | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | | Add sysctl_param resource from the sysctl cookbookTim Smith2018-03-212-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | Copied from the cookbook with modifications made there Signed-off-by: Tim Smith <tsmith@chef.io>
* | | | Bump version to 14.0.155 by Expeditorv14.0.155Chef Expeditor2018-03-221-1/+1
| |_|/ |/| |
* | | sudo: Don't fail on FreeBSD. Turns out there's a .d directoryTim Smith2018-03-221-9/+4
| |/ |/| | | | | | | | | I guess they use .d directory structures in sudo, but that's about it. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 14.0.154 by Expeditorv14.0.154Chef Expeditor2018-03-221-1/+1
| |
* | remove dead code from property declarationlcg/remove-dead-codeLamont Granquist2018-03-211-25/+0
| | | | | | | | | | | | | | | | | | | | | | this is effectively dead because of forcing new_resource.thingy i stuck a hard `raise` in here and we have no tests around this any more. the conditional also just makes my head hurt looking at it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version to 14.0.153 by Expeditorv14.0.153Chef Expeditor2018-03-211-1/+1
| |
* | Merge pull request #7023 from chef/lcg/rubocop-fixesLamont Granquist2018-03-219-27/+27
|\ \ | | | | | | rubocop fixes from engine bump to 0.54.0
| * | rubocop fixes from engine bump to 0.54.0lcg/rubocop-fixesLamont Granquist2018-03-219-27/+27
| |/ | | | | | | | | | | some cops got a little stricter. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version to 14.0.152 by Expeditorv14.0.152Chef Expeditor2018-03-211-1/+1
| |
* | Merge pull request #7016 from chef/tm/chef_guidThom May2018-03-213-1/+25
|\ \ | | | | | | Save the node's UUID as an attribute
| * | Save the node's UUID as an attributetm/chef_guidThom May2018-03-213-1/+25
| | | | | | | | | | | | | | | | | | | | | 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>
* | | Bump version to 14.0.151 by Expeditorv14.0.151Chef Expeditor2018-03-211-1/+1
| | |
* | | Merge pull request #7015 from chef/windows_feature_fixTim Smith2018-03-211-5/+15
|\ \ \ | | | | | | | | Support installing removed windows features from source