| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed incorrect option mapping where deprecated flags
would have a 'long' taken from the replacement flag.
Updated the behavior in case of conflicting flags
(for example --ssh-user and --connection-user) to avoid
surprising results by failing with an error instead
of trying to resolve intent.
Renamed things a bit for readability/consistency.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
|
|
|
| |
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
|
|\
| |
| | |
Enable license acceptance during bootstrap
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When performing the initial `chef-client` converge
on a bootstrapped host, ensure that we set the license
environment variable that indicates the license was accepted.
This will allow the run to continue under Chef 15, which requires
license acceptance.
I used the environment variable instead of the CLI flag
because older versions of Chef do not support the CLI flag.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
| |
| |
| |
| |
| |
| | |
This replaces TargetHost, and the associated renames/minor updates.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|/
|
|
|
|
| |
This is a drop-in replacement for TargetHost out of chef-core.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
| |
Co-Authored-By: marcparadise <marcparadise@users.noreply.github.com>
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
THis improves deprecation handling by not trying to infer
old opts/long string, and correctly handles setting the boolean flag
on deprecated options.
This also fixes references to :password to be in
line with the option name, :connection_password.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
|
|
|
| |
The minimum available version of Chef Client for
bootstrap is 12.20; FIPS support was added in 12.8. This change
removes the minimum chef version check for fips in the client.rb
generated by bootstrap.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
|
|
| |
This adds a lightweight deprecation mechanism
in order to warn the human that they're using deprecated flags,
and to continue to allow Bootstrap to work even if that happens.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This was unnecessary since this class does not refer
to Bootstrap, and it was causing warning messages at runtime
about Bootstrap constants being defined twice.
This didn't happen previously because Bootstrap did not
have any constants defined until after the conversion to Train.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make bootstrap use train via chef_core/TargetHost
This commit implements usage of TargetHost instead of
knife_ssh. TargetHost is a platform-independent representation
of a Train connection. It abstracts common operations
(such as file upload/download, permissions, temp directories,
command executation, etc) and connection error handling.
Moving to TargetHost and train gives us the ability to
execute commands on the bootstrap target; instead of
running sh -c 'long-command-string-containing-secrets', we'll
now upload the bootstrap script to a temporary directory on the
bootstrap target and execute it there.
Incorporating WinRM support directly (allowing core support
for Windows bootstraps, without the knife-windows plugin)
will follow.
THis also improves unit test coverage of the bootstrap module,
and clarifies functional versus behavior tests in that space
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
|
|
|
|
| |
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
|
|\
| |
| | |
Replace highline with tty-screen in knife list
|
| |
| |
| |
| |
| |
| | |
One step closer to killing off highline. We're just getting the terminal width here, which is super overkill for highline. We're still using it in quite a few other places, but this gets us one step closer to moving over to tty entirely.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
| |
Signed-off-by: vijaymmali1990 <vijay.mali@msystechnologies.com>
|
|
|
|
|
|
| |
A pile of misc yard I added as I was reading things.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
|
|
|
| |
omnitruck-direct.chef.io is a legacy URL that now points to the same
place as omnitruck.chef.io, and was originally in place to support
clients with older SSL libraries. However, the backward compatible
behavior of omnitruck-direct hasn't been the case for a while now. This
change just corrects the URL in the bootstrap template also.
Signed-off-by: Mark Harrison <mark@mivok.net>
|
|\
| |
| | |
[knife] Remove duplicate code blocks in the knife cookbook upload command
|
| |
| |
| |
| | |
Signed-off-by: Fatih Sarhan <f9n@protonmail.com>
|
|\ \
| | |
| | | |
Cleanup requires / includes in knife supermarket
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
1) Move everything into the deps blocks
2) don't require shell_out in install since we're not using it. We use mixlib_archive now
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/ /
| |
| |
| |
| |
| | |
Some YARD fixes as I was reading through knife bits.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| |
| |
| | |
We'll want to backport this to Chef 14 as well.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
This keeps these commands out of the help text.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
|
| |
this is the result of changes to rules we already previously had
enabled.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
includes backcompat for 2.5
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| | |
Fully remove knife cookbook create command
|
| |
| |
| |
| |
| |
| | |
We already removed all functionality and replaced it with an error message. This prevents the command from showing up in help.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|\ \
| | |
| | | |
Make knife command banners consistent
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add (options) everywhere you can pass in options.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
The previous PR removed the argv rewrite, but didn't remove the actual
commands it rewrote to. Now we remove the commands so they don't show up
in help.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|/
|
|
|
|
| |
We shipped Chef 12 server on 2014-11-25. We've maintained backwards compatibility here by shipping double plugins, constantly checking for Chef 11 and then rewriting passed args. We deprecated it with Chef 14. This fully removes support. chef-client will continue to work on chef 11, but users cannot be managed with knife from a workstation running the latest version of Chef/ChefDK.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We deprecated this during the Chef 13 cycle. It's time to fully remove it.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
We've been telling people this was going away in Chef 15
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
This has been deprecated since forever.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|\
| |
| | |
Remove the deprecated knife bootstrap --identity-file flag
|
| |
| |
| |
| |
| |
| | |
Remove this deprecated flag
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
| |
| |
| | |
Signed-off-by: Alexandre Ignjatovic <alexandre.ignjatovic@gmail.com>
|