diff options
author | Marc A. Paradise <marc.paradise@gmail.com> | 2019-02-20 10:55:01 -0500 |
---|---|---|
committer | Marc A. Paradise <marc.paradise@gmail.com> | 2019-04-24 13:25:58 -0400 |
commit | df96e7420dd1c258c794d2181d911add3eea8c47 (patch) | |
tree | e09cf59c7f3f5b3291846122a18e9c4f08e5f2f0 /lib/chef.rb | |
parent | f492fe53eac1b74a0d184f0e9cf7412b70770e29 (diff) | |
download | chef-df96e7420dd1c258c794d2181d911add3eea8c47.tar.gz |
Bootstrap via chef_core
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>
Diffstat (limited to 'lib/chef.rb')
-rw-r--r-- | lib/chef.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef.rb b/lib/chef.rb index 3d6b783253..ccfb57764d 100644 --- a/lib/chef.rb +++ b/lib/chef.rb @@ -16,7 +16,11 @@ # limitations under the License. # + require "chef/version" + +require "chef_core/text" + require "chef/nil_argument" require "chef/mash" require "chef/exceptions" |