summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Better target mode shell_outlcg/better-target-mode-shell-outLamont Granquist2019-05-237-103/+45
| | | | | | | | - integrates target-mode fully with shell_out - removes the train_or_shellout mixin - apt_package is now fully supported in target-mode Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Bump version to 15.0.305 by Chef Expeditorv15.0.305Chef Expeditor2019-05-221-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #8544 from chef/lcg/require-idempotencyLamont Granquist2019-05-22143-203/+203
|\ | | | | Gate requires with idempotency check
| * This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-20143-203/+203
| | | | | | | | | | | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version to 15.0.304 by Chef Expeditorv15.0.304Chef Expeditor2019-05-211-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #8571 from chef/lcg/better-target-mode-creds-errorsLamont Granquist2019-05-211-14/+10
|\ \ | |/ |/| Better target mode no-creds errors
| * Better target mode no-creds errorslcg/better-target-mode-creds-errorsLamont Granquist2019-05-201-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the target mode error in the case of no creds at all to: ``` FATAL: ArgumentError: Credentials file specified for target mode does not exist: '/Users/lamont/.chef/credentials' ``` From: ``` [2019-05-20T17:30:41-07:00] FATAL: NoMethodError: undefined method `[]' for nil:NilClass ``` Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version to 15.0.303 by Chef Expeditorv15.0.303Chef Expeditor2019-05-211-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 15.0.302 by Chef Expeditorv15.0.302Chef Expeditor2019-05-201-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Only set client_pem in bootstrap_context when validatorlessbtm/client_key_validator_fixBryan McLellan2019-05-171-3/+2
|/ | | | | | | | | We should only set bootstrap_context.client_pem if we're a validatorless bootstrap. Fixes #8534 Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Bump version to 15.0.301 by Chef Expeditorv15.0.301Chef Expeditor2019-05-161-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 15.0.300 by Chef Expeditorv15.0.300Chef Expeditor2019-05-161-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Enable pty for bootstrap sshbootstrap-uses-ptyMarc A. Paradise2019-05-161-0/+1
| | | | | | | | This will allow bootstrap to work with systems that have `requiretty` configured, and is consistent with the behavior of Chef 14 bootstrap Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* Bump version to 15.0.299 by Chef Expeditorv15.0.299Chef Expeditor2019-05-161-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Add Chef license acceptance CLI flag to chef-solochef_apply_licenseTim Smith2019-05-151-0/+2
| | | | | | Our major CLI commands should all have this Signed-off-by: Tim Smith <tsmith@chef.io>
* Add license CLI options to chef-apply commandTim Smith2019-05-151-0/+2
| | | | | | | You could accept the license interactively but you could not do it via the CLI flag Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 15.0.298 by Chef Expeditorv15.0.298Chef Expeditor2019-05-151-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 15.0.297 by Chef Expeditorv15.0.297Chef Expeditor2019-05-151-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #8539 from chef/mp/bootstrap-updatesTim Smith2019-05-151-25/+32
|\ | | | | Multiple Bootstrap bug fixes
| * Bootstrap updatesmp/bootstrap-updatesMarc A. Paradise2019-05-141-25/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a few fixes: 1. properly handle the default value for session_timeout in cases where merge_config is not called (plugins) to populate defaults. 2. verify that we're using the ssh protoocl before referencing ssh constants. 3. capture and compare the higher-level Train::Error for the check to see if we've gotten a missing fingerprint error, instead of using Train::Transports::SSHFailed which may not be loaded when exception is being evaluated. 4. Add tests for missing fingerprint behavior 5. do not save session_timeout to Chef::Config[:knife], it was not referenced as knife config in any location and we're trying to move away from pushing CLI values into knife config. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* | Bump version to 15.0.296 by Chef Expeditorv15.0.296Chef Expeditor2019-05-151-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 15.0.295 by Chef Expeditorv15.0.295Chef Expeditor2019-05-151-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 15.0.294 by Chef Expeditorv15.0.294Chef Expeditor2019-05-141-1/+1
|/ | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 15.0.293 by Chef Expeditorv15.0.293Chef Expeditor2019-05-131-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Rename the windows_dfs :install actions to :createTim Smith2019-05-132-2/+2
| | | | | | We're creating these dfs shares so it makes a lot more sense to make the action create. This is probably what people using Chef would expect. Signed-off-by: Tim Smith <tsmith@chef.io>
* Bump version to 15.0.292 by Chef Expeditorv15.0.292Chef Expeditor2019-05-131-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #8521 from ↵Bryan McLellan2019-05-131-6/+29
|\ | | | | | | | | MsysTechnologiesllc/VSingh/bootstrap-session-timeout Chef 15: Add --session-timeout bootstrap option for both ssh & winrm
| * Add a warning when session-timeout is too shortMarc A. Paradise2019-05-131-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We converted --winrm-session-timeout MINUTES to --session-timeout SECONDS If someone is providing a short session timeout, it's possible that they're doing so based on the flag accepting minutes. We'll warn them and suggest an alternative so that if things go wrong, they'll know where to start looking. We can remove this once we remove the deprecation for winrm-session-timeout Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
| * Revert "Revert default session timeout value"Marc A. Paradise2019-05-131-3/+4
| | | | | | | | | | | | | | | | | | This reverts commit f652cbfd532042620565c6464c2a9cef947f3b0d. Timeouts are the right way to go, but we need to update the tests to account for the defaulted values. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
| * Revert default session timeout valueVivek Singh2019-05-141-4/+3
| | | | | | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Set session timeout default valueVivek Singh2019-05-141-4/+5
| | | | | | | | | | | | - Updated deprecated flag to MINUTES. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
| * Add --session-timeout bootstrap option for both ssh & winrmVivek Singh2019-05-131-6/+9
| | | | | | | | | | | | | | | | | | - Add bootstrap option --session-timeout. - Add wirnrm-session to deprecations. - Default --session-timeout value is 60 secs(same was added for --winrm-session-timeout). - Modify existing specs related to old winrm session timeout key and add specs for session timeout. Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* | Bump version to 15.0.291 by Chef Expeditorv15.0.291Chef Expeditor2019-05-131-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #8524 from chef/btm/retry-fingerprintBryan McLellan2019-05-131-19/+29
|\ \ | | | | | | Use new Net:SSH host key verify values
| * | move retry into #connect!Bryan McLellan2019-05-131-21/+19
| | | | | | | | | | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org>
| * | Update RELEASE NOTES and trim out friendly_opt_listbtm/retry-fingerprintBryan McLellan2019-05-131-10/+2
| | | | | | | | | | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org>
| * | Use new Net:SSH host key verify valuesBryan McLellan2019-05-131-10/+30
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8482 by prompting to continue if the host key is not recognized. This attempts to tell Net:SSH to accept and write the key but it is only temporarily accepting. This changes the parameters of --ssh-verify-host-key (which is new) to take the Net::SSH values, which get passed through by train. This allows the user more options than only verifying or not. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | Bump version to 15.0.290 by Chef Expeditorv15.0.290Chef Expeditor2019-05-131-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Bump version to 15.0.289 by Chef Expeditorv15.0.289Chef Expeditor2019-05-131-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Winrm check code refactorVivek Singh2019-05-131-4/+4
|/ | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Bump version to 15.0.288 by Chef Expeditorv15.0.288Chef Expeditor2019-05-111-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Bump version to 15.0.287 by Chef Expeditorv15.0.287Chef Expeditor2019-05-111-1/+1
| | | | Obvious fix; these changes are the result of automation not creative thinking.
* Merge pull request #8506 from chef/KNIFE-EC2-567/handle-unmerged-caseTim Smith2019-05-101-3/+10
|\ | | | | [knife-ec2-547] Update config_source to support using knife classes without requiring merge_config
| * Move original config initialization to constructorKNIFE-EC2-567/handle-unmerged-caseMarc A. Paradise2019-05-081-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves initialization of @original_config out of merge_configs and into the constructor. A common access pattern for plugins running knife commands is: cmd = KnifeCommand.new cmd.config[:something] = value cmd.run This bypasses the `Knife.run` class method, which does extra config initialization - including merge_configs. When that happens, `config_source` will now return `nil` as the source instead of exploding. Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
* | Bump version to 15.0.286 by Chef Expeditorv15.0.286Chef Expeditor2019-05-111-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Change some more require to require_relativeLamont Granquist2019-05-1018-21/+21
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Bump version to 15.0.285 by Chef Expeditorv15.0.285Chef Expeditor2019-05-111-1/+1
| | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.
* | Merge pull request #8507 from MarkGibbons/solaris_bootstrapTim Smith2019-05-101-1/+2
|\ \ | | | | | | Use exports compatibile with /bin/sh in the bootstrap script
| * | Use exports compatibile with /bin/sh in the bootstrap scriptmarkgibbons2019-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The bootstrap script is explicitly using /bin/sh. On some solaris servers the version of /bin/sh exporting environment variables using "export id=value" fails. The form "id=value export id" does work. Bootstrap fails when the wrong form is used. Signed-off-by: markgibbons <mark.gibbons@nordstrom.com>
* | | Bump version to 15.0.284 by Chef Expeditorv15.0.284Chef Expeditor2019-05-101-1/+1
| | | | | | | | | | | | Obvious fix; these changes are the result of automation not creative thinking.