@@ -91,7 +91,7 @@ def provision(platform, inventory_location, vars)
9191 data . each do |host |
9292 if platform_uses_ssh ( host [ 'type' ] )
9393 node = { 'uri' => host [ 'hostname' ] ,
94- 'config' => { 'transport' => 'ssh' , 'ssh' => { 'user' => ENV [ 'ABS_USER' ] , 'host-key-check' => false } } ,
94+ 'config' => { 'transport' => 'ssh' , 'ssh' => { 'user' => ENV [ 'ABS_USER' ] , 'host-key-check' => false , 'connect-timeout' => 120 } } ,
9595 'facts' => { 'provisioner' => 'abs' , 'platform' => host [ 'type' ] , 'job_id' => job_id } }
9696 if !ENV [ 'ABS_SSH_PRIVATE_KEY' ] . nil? && !ENV [ 'ABS_SSH_PRIVATE_KEY' ] . empty?
9797 node [ 'config' ] [ 'ssh' ] [ 'private-key' ] = ENV [ 'ABS_SSH_PRIVATE_KEY' ]
@@ -101,7 +101,7 @@ def provision(platform, inventory_location, vars)
101101 group_name = 'ssh_nodes'
102102 else
103103 node = { 'uri' => host [ 'hostname' ] ,
104- 'config' => { 'transport' => 'winrm' , 'winrm' => { 'user' => ENV [ 'ABS_WIN_USER' ] , 'password' => ENV [ 'ABS_PASSWORD' ] , 'ssl' => false } } ,
104+ 'config' => { 'transport' => 'winrm' , 'winrm' => { 'user' => ENV [ 'ABS_WIN_USER' ] , 'password' => ENV [ 'ABS_PASSWORD' ] , 'ssl' => false , 'connect-timeout' => 120 } } ,
105105 'facts' => { 'provisioner' => 'abs' , 'platform' => host [ 'type' ] , 'job_id' => job_id } }
106106 group_name = 'winrm_nodes'
107107 end
0 commit comments