summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a bug where create_key would conflict with public_key in hash returned ↵tylercloke2015-04-301-0/+8
| | | | from server on update.
* Changes Chef::Key update to allow updating the name of a key.tylercloke2015-04-301-4/+10
|
* Merge pull request #3207 from Igorshp/exception_handlersThom May2015-04-302-6/+4
|\ | | | | patch to always run exception handlers
| * updated based on @lamont-granquist commentsIgor Shpakov2015-04-132-2/+1
| |
| * do not overwrite whole @run_status in #build_nodeIgor Shpakov2015-04-112-6/+5
| |
| * patch to always run exception handlersIgor Shpakov2015-04-091-1/+1
| | | | | | | | | | | | exception handlers require @run_status to be set. This patch moves @run_status declaration higher up so exception handlers report on all problems inside do_run begin block
* | Implemented `knife user key delete` and `knife client key delete`.tylercloke2015-04-293-0/+207
| |
* | Merge pull request #3235 from jaymzh/yum_archPhil Dibowitz2015-04-292-31/+73
|\ \ | | | | | | Make multipackage and arch play nicely together
| * | Make multipackage and arch play nicely togetherPhil Dibowitz2015-04-292-31/+73
| | | | | | | | | | | | Fixes #3233
* | | Implemented `knife user key list` and `knife client key list`.tc/key-listtylercloke2015-04-294-0/+271
|/ / | | | | | | Abstracted out a bunch of common tests with the key create code to reduce redundancy.
* | Implemented `knife user key create` and `knife client key create`.tylercloke2015-04-286-1/+298
| | | | | | | | Implemented using a common service class that contains most of the actual functionality outside of parsing and inheriting Chef::Knife.
* | Fixed bug in Chef::Key where create failed to return the full key.tylercloke2015-04-281-1/+5
| | | | | | | | | | | | | | Code assumed POST to keys endpoint returned the key body like other parts of the API. Now, it simply generated the new key returned by create from the original key plus the private_key returned by the API if any. Specs also updated.
* | Set chef_server_root config value to sane defaults.tylercloke2015-04-281-0/+10
| | | | | | | | If chef_server_url matches /\/organizations\/\S*$/ aka .../organizations/someorg, then strip /organizations/someorg and use that as the chef_server_root default. Otherwise, just use whatever chef_server_url is as the default.
* | Merge pull request #3279 from chef/lcg/fix-provider-resolver-api-breakThom May2015-04-272-1/+4
|\ \ | | | | | | Lcg/fix provider resolver api break
| * | typo fix in commentlcg/fix-provider-resolver-api-breakLamont Granquist2015-04-271-1/+1
| | |
| * | Fix API break in 12.3.0.rc.0Lamont Granquist2015-04-242-1/+4
| | | | | | | | | | | | | | | | | | | | | provides? on a provider was passed the full resource. provides? on a resource class cannot be passed the resource and must be passed the declared_type instead. i tried to make them the same, but that would change the API on the provider.
* | | Merge pull request #3280 from chef/sersut/3234Thom May2015-04-271-0/+1
|\ \ \ | | | | | | | | Configure serverspec correctly on windows.
| * | | Configure serverspec correctly on windows.sersut/3234Serdar Sutay2015-04-241-0/+1
| |/ /
* | | Merge pull request #3166 from chef/ssd/find-pythonThom May2015-04-251-1/+29
|\ \ \ | |/ / |/| | Use the same python interpreter as yum when possible
| * | Use the same python interpreter as yum when possiblessd/find-pythonSteven Danna2015-03-311-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | We rely on a system python installation with the correct python libraries. To improve the chances that the python interpreter we call has the yum libary available, we use the same interpreter as yum uses. Fixes #3143
* | | Revert "Fix API break in 12.3.0.rc.0"Lamont Granquist2015-04-242-4/+1
| | | | | | | | | | | | This reverts commit 57cdbe124f63e47cab960e714572539d3979b90f.
* | | Fix API break in 12.3.0.rc.0Lamont Granquist2015-04-242-1/+4
| | | | | | | | | | | | | | | | | | | | | provides? on a provider was passed the full resource. provides? on a resource class cannot be passed the resource and must be passed the declared_type instead. i tried to make them the same, but that would change the API on the provider.
* | | 12.4.0.dev.0 for masterjdm/12.4.0.devJay Mundrawala2015-04-211-1/+1
| | |
* | | Implemented the Key object corrosponding to key rotation API endpoint.tc/chef_key_objecttylercloke2015-04-202-0/+254
| | |
* | | Address review comments from @btmJulian C. Dunn2015-04-201-7/+3
| | |
* | | Address review comment ↵Julian C. Dunn2015-04-201-18/+0
| | | | | | | | | | | | https://github.com/chef/chef/pull/2877#discussion_r26357870
* | | Several bugs found during testing:Julian C. Dunn2015-04-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use -o option in curl to send the install.sh to a file. This way stderr/stdout can be reserved for errors like "curl: not found", ensuring it is captured. * On AIX, ksh was shell-substituting $ARGV[0] before script interpretation, so use a shift() trick to avoid the $ * If the chef-client binary doesn't exist at all, then avoid proceeding with the rest of should_update_chef() Tested on: AIX 7.1 + sudo, FreeBSD 10 + ca_root_nss + sudo
* | | Gotta do something with that stderr we so carefully captured.Julian C. Dunn2015-04-201-0/+5
| | |
* | | Copy more robust routines from Omnitruck installer.Julian C. Dunn2015-04-201-31/+86
| | | | | | | | | | | | Put knife bootstrap proxy options back in the right place.
* | | Rebase and resolve conflicts.Julian C. Dunn2015-04-201-22/+126
| | |
* | | Fix nil pointer for windows event loggerJay Mundrawala2015-04-201-5/+11
| | | | | | | | | | | | | | | It is possible for the run to fail and no run_status to even have been set. This resolves issue #2996
* | | Merge pull request #3135 from tomhughes/searchThom May2015-04-161-1/+1
|\ \ \ | | | | | | | | Ensure that a search query makes progress
| * | | Ensure that a search query makes progressTom Hughes2015-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a search doesn't return a full result then increment the start pointer by the number of rows returned, rather than assuming that it was equal to the row limit, and defaulting to zero. This should fix #3099
* | | | move where we dep inject the priority mapsLamont Granquist2015-04-152-6/+7
| | | | | | | | | | | | | | | | | | | | fixes the priority maps on chef-apply by wiring it up in the constructor of the client
* | | | add resource_resolver and resource_priority_mapLamont Granquist2015-04-1512-78/+363
| | | | | | | | | | | | | | | | also wire them up through the Chef class.
* | | | Merge pull request #3213 from chef/2140/jm/support_username_passwordJon Morrow2015-04-151-4/+21
|\ \ \ \ | | | | | | | | | | Fixes 2140 - Honor Proxy from Env
| * | | | Fixes 2140 - Honor Proxy from EnvJon Morrow2015-04-141-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds support to Chef's core http libs to honor a proxy uri set in the environment not just chef/knife config. It also adds support for username and password both in uri and env. The order of precidence for values is uri, config, env.
* | | | | explicitly require node presentertm/fix_presenter_includeThom May2015-04-131-0/+1
| | | | |
* | | | | Merge pull request #3051 from mikedodge04/macosx_service_updatePhil Dibowitz2015-04-112-30/+125
|\ \ \ \ \ | |/ / / / |/| | | | Load LaunchAgents as console user, adding plist and session_type options
| * | | | adding assert for plistMike Dodge2015-04-011-5/+9
| | | | |
| * | | | fix some typos in commentsMike Dodge2015-03-261-2/+1
| | | | |
| * | | | moved around debugsMike Dodge2015-03-261-2/+1
| | | | |
| * | | | added requsted chagnesMike Dodge2015-03-262-5/+9
| | | | |
| * | | | addressed each of the commentsMike Dodge2015-03-252-4/+5
| | | | |
| * | | | removing vim comment (sorry its a habit to add)Mike Dodge2015-03-242-2/+0
| | | | |
| * | | | First pass at fixing the unit testsMike Dodge2015-03-123-7/+12
| | | | |
| * | | | small change to the base user cmdMike Dodge2015-03-101-2/+1
| | | | |
| * | | | Load LaunchAgents as console user, adding plist and session_type optionsMike Dodge2015-03-103-27/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Proposed changes to chef mac osx service provider. This adds two resource parameters, @plist and @session_type and changes logic to Load LaunchAgents as Console user @plist: Adds the logic to handle (https://github.com/chef/chef/issues/2200) by Giving the user the option to pass a plist, in the case that the plist name and label name don't match. @session_type to help account launching the service as the console user with a different session type. ( Im a Facebook employee and PhilD will do the final merge. )
* | | | | Merge pull request #3067 from chef/tm/knife_status_environmentThom May2015-04-092-18/+43
|\ \ \ \ \ | |_|_|_|/ |/| | | | Allow knife status to filter by environment
| * | | | Deal with the case where we're not partial searchThom May2015-04-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is only when the long_output flag is passed, which is probably never since I only just enabled it. But we document it, so it should really work…