summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap.rb
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2019-05-16 14:22:50 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2019-05-16 14:27:45 -0400
commita5e4af782cb3575d660008c00b6fa873fb3d6c34 (patch)
treed49057ba9aa6cc325c60c6fed678c3f70e3d80e0 /lib/chef/knife/bootstrap.rb
parent53a541c3016a6257d7aea47739ac5689f73045cc (diff)
downloadchef-a5e4af782cb3575d660008c00b6fa873fb3d6c34.tar.gz
Enable pty for bootstrap sshbootstrap-uses-pty
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>
Diffstat (limited to 'lib/chef/knife/bootstrap.rb')
-rw-r--r--lib/chef/knife/bootstrap.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 1e5580a61d..66d73a3372 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -865,6 +865,7 @@ class Chef
def ssh_opts
opts = {}
return opts if winrm?
+ opts[:pty] = true # ensure we can talk to systems with requiretty set true in sshd config
opts[:non_interactive] = true # Prevent password prompts from underlying net/ssh
opts[:forward_agent] = (config_value(:ssh_forward_agent) === true)
opts[:connection_timeout] = session_timeout