summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authortyler-ball <tball@chef.io>2019-04-18 15:27:54 -0600
committerMark Anderson <mark@chef.io>2019-05-03 21:40:19 -0700
commitdb12e959e88aae92b9414a7637007ce7263fed1a (patch)
tree08169d58c8ec86e3b0675dc4aff84e33dd5ca889 /lib/chef/knife/bootstrap.rb
parentf02fe6b3ad2711f7e84f310bf19128b74fc3cd0e (diff)
downloadchef-db12e959e88aae92b9414a7637007ce7263fed1a.tar.gz
knife bootstrap is only knife command to have license acceptance flow
Because in order to run `chef-client` on the bootstrapped node the user needs to have accepted the licenses locally. Right now we have commented out this code because we will enforce it in a different PR. Signed-off-by: tyler-ball <tball@chef.io>
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r--lib/chef/knife/bootstrap.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 69d9ffb8c0..8539ee7c17 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -19,11 +19,14 @@
require "chef/knife"
require "chef/knife/data_bag_secret_options"
require "chef/dist"
+require "license_acceptance/cli_flags/mixlib_cli"
+require "license_acceptance/acceptor"
class Chef
class Knife
class Bootstrap < Knife
include DataBagSecretOptions
+ # include LicenseAcceptance::CLIFlags::MixlibCLI
SUPPORTED_CONNECTION_PROTOCOLS = %w{ssh winrm}.freeze
WINRM_AUTH_PROTOCOL_LIST = %w{plaintext kerberos ssl negotiate}.freeze