summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2684 from chef/jdm/win-seg-faultJay Mundrawala2015-01-222-7/+0
|\ | | | | Removing ole_initialize/uninitialize
| * Removing ole_initialize/uninitializejdm/win-seg-faultJay Mundrawala2014-12-182-7/+0
| | | | | | | | This seems to stop ruby from seg faulting on Windows
* | Fixes #2604, update location for Chef Server 12jtimberman2015-01-211-2/+2
| | | | | | | | | | The doc changes were removed from the last release, and so not present in this commit.
* | make include_recipe "::foo" use current cookbookLamont Granquist2015-01-203-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following code is brittle if you want to fork the cookbook and rename it (which is a best practice when forking cookbooks for internal use): ```ruby if node[:platform_family] == "rhel" include_recipe "mycookbook::_rhel" end ``` In order for cookbooks to be easily renamable they can currently use the syntax `include_recipe "#{cookbook_name}::_rhel"` which is unwieldy. This patch adds `include_recipe "::_rhel"` as syntax sugar to make this easier.
* | Drop the SSL warning now that we have a safe defaultPhil Dibowitz2015-01-162-35/+0
| |
* | Suppress SSL warnings if I know what I'm doingPhil Dibowitz2015-01-152-1/+3
| |
* | Merge pull request #2753 from opscode/lcg/deep-merge-cache-fixLamont Granquist2015-01-141-4/+4
|\ \ | | | | | | deep_merge_cache fixes for bugs in 12.0.0
| * | deep_merge_cache fixes for bugs in 12.0.0Lamont Granquist2015-01-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | In 12.0.0 we introduced a cache for the merged attributes for the top-level node attribute keys. This fixes this so that node['foo'] and node[:foo] are not cached separately. This also showed up in bugs as issues between node['foo'] access and node.foo access because node.foo is translated into node[:foo].
* | | Merge pull request #2723 from patcox/CHEF-2667Phil Dibowitz2015-01-141-3/+13
|\ \ \ | | | | | | | | bugfix dscl provider
| * | | fix small readability issue, as per code reviewPat Cox2015-01-121-1/+3
| | | |
| * | | bugfix dscl providerPat Cox2015-01-121-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to compare with the UID, not a GUID. So we need to map the correct field for comparison. Also fix a bug in determining used uids. This fixes this exception when the specified uid is actually in use by the correct user: Chef::Exceptions::RequestedUIDUnavailable: uid 48 is already in use
* | | | Merge pull request #2724 from patcox/dscl_fix_salt_bugPhil Dibowitz2015-01-141-0/+5
|\ \ \ \ | | | | | | | | | | OS X user provider - fix exception if no salt is found
| * | | | add code comment, add unit test for case when no salt is foundPat Cox2015-01-121-0/+4
| | | | |
| * | | | OS X user provider - fix exception if no salt is foundPat Cox2015-01-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some system users don't have salts. This exception is fixed by this commit: # in `convert_to_binary': NoMethodError: undefined method `size' for nil:NilClass
* | | | | Merge pull request #2722 from patcox/CHEF-2690Phil Dibowitz2015-01-133-0/+3
|\ \ \ \ \ | |_|_|/ / |/| | | | Macports provider - provide package
| * | | | Macports provider - provide packagePat Cox2015-01-123-0/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The MacPorts provider should provide package so that you can change the precedence in provider mappings, with a statement like this: Chef::Platform::ProviderPriorityMap.instance.priority( :package, Chef::Provider::Package::Macports, :os => 'darwin' ) Also, set default priority in mapping so that homebrew wins.
* | | | Provide more info when cookbook metadata is not foundJay Mundrawala2015-01-132-3/+7
| |/ / |/| |
* | | Skip 3694 warnings on trivial resource cloningLamont Granquist2015-01-123-47/+152
| | | | | | | | | | | | | | | | | | | | | Turns the 3694 warning into a debug message if the prior resource is identical to the current resource. Suggestion for opscode/chef-rfc#76 This also moves resource building out to its own class.
* | | add a compile_time flag to chef_gem resourceLamont Granquist2015-01-121-3/+20
| | | | | | | | | | | | | | | | | | | | | the default is still the same, but will warn that users should start being explicit. setting compile_time false will become the new default in chef-13 and is encouraged to avoid the compile_time arms race.
* | | add forcing of LANG and LANGUAGE env varsLamont Granquist2015-01-121-1/+7
|/ / | | | | | | | | | | if we don't force LANGUAGE then package installs will still fail, etc due to taking precedence over even LC_ALL, force LANG as well for good measure which should cover all the bases hopefully.
* | remove filter altogether, as per code reviewPat Cox2015-01-072-2/+2
| |
* | correct filters for MacPorts package providerPat Cox2015-01-062-2/+2
| | | | | | | | | | macports needs to provide macports_package to `darwin`, not `mac_os_x`. `mac_os_x` is the platform, `darwin` is the OS.
* | Updating for review commentstyler-ball2014-12-292-4/+2
| |
* | Merging master to audit-modetyler-ball2014-12-297-96/+197
|\ \
| * | Fix. Make sure that scheme part of the URI is treated in a case-insensitive ↵Krzysztof Wilczynski2014-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | manner. This is as per http://en.wikipedia.org/wiki/URI_scheme, and solves some edges i.e., following (30x) URL from the "Location" header where we have to deal with "HTTP://". Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
| * | Merge pull request #2687 from opscode/mcquin/bugfix/search-filteringClaire McQuin2014-12-232-91/+70
| |\ \ | | | | | | | | Make search with filtering match partial_search.
| | * | Build configurable search string.mcquin/bugfix/search-filteringClaire McQuin2014-12-191-1/+9
| | | |
| | * | Remaining fixes.Claire McQuin2014-12-192-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | * Exclude rows from query if rows are nil. * Update defaults in knife/search to match query defaults. * Update start when polling more rows.
| | * | Fix spelling.Claire McQuin2014-12-191-1/+1
| | | |
| | * | Make config a reader.Claire McQuin2014-12-191-2/+2
| | | |
| | * | Use 2.0 syntax (required keyword arguments are 2.1+).Claire McQuin2014-12-191-2/+2
| | | |
| | * | Fix whitespace.Claire McQuin2014-12-191-5/+4
| | | |
| | * | Allow search to receive either an array or hash of arguments.Claire McQuin2014-12-191-44/+37
| | | |
| | * | Add optional config parameter.Claire McQuin2014-12-181-3/+9
| | | |
| | * | Return all matches by default.Claire McQuin2014-12-181-2/+1
| | | |
| | * | Make search with filtering match partial_search.Claire McQuin2014-12-181-86/+60
| | | | | | | | | | | | | | | | * Updated search to use argument parameters.
| * | | Merge pull request #2288 from opscode/cdoherty-enhance-win-serviceChris Doherty2014-12-214-4/+126
| |\ \ \ | | |/ / | |/| | Enable logon-as-service in windows_service (CHEF-4921).
| | * | Enable Windows services to run as a different user (CHEF-4921). This adds ↵cdoherty-enhance-win-serviceChris Doherty2014-12-194-4/+126
| | |/ | | | | | | | | | | | | | | | | | | | | | :run_as_user and :run_as_password attributes to the windows_service resource. If a logon user is specified, the resource will (on every run) grant the logon-as-service privilege to that user, using secedit.exe.
* | | Merging master to this branchtyler-ball2014-12-183-4/+9
|\ \ \ | |/ /
| * | Merge pull request #2654 from opscode/jdm/lcm-parser-fixesJay Mundrawala2014-12-183-4/+9
| |\ \ | | |/ | |/| Fix bug where errored parsing from what-if output causes resource to be considered converged
| | * Rename Chef::Exceptions::LCMParserException to Chef::Exceptions::LCMParserJay Mundrawala2014-12-173-3/+3
| | |
| | * Fix bug where error parser what-if output causes resource to be considered ↵Jay Mundrawala2014-12-173-4/+9
| | | | | | | | | | | | | | | | | | | | | converged. We now fall back to assuming the resource is not converged if we cannot parse information about a dsc resource.
* | | Addressing review comments, adding documentationtyler-ball2014-12-181-0/+5
| | |
* | | Resolving conflicsts from giant rebasetyler-ball2014-12-174-46/+46
| | |
* | | Unit tests for audit-mode in chef-solo.Claire McQuin2014-12-174-12/+5
| | | | | | | | | | | | | | | * Audits are disabled by default. * Also, updated spec file to use RSpec :let.
* | | Add specs for audit-mode command-line and configuration settings.Claire McQuin2014-12-171-6/+5
| | |
* | | Disable audit-mode by default.Claire McQuin2014-12-172-12/+45
| | | | | | | | | | | | | | | * Modify command line option --audit-mode to accept parameters enabled, disabled, or audit-only. * Emit a warning if audit-mode is enabled or audit-only.
* | | Fixing unit test adding Serverspec DSLtyler-ball2014-12-172-4/+2
| | |
* | | Finishing unit and functional test coverage for audit runnertyler-ball2014-12-171-4/+1
| | |
* | | Adding simple integration test for audit mode outputtyler-ball2014-12-174-2/+59
| | |