Skip to main content
Most provisioners require access to the remote resource via SSH or WinRM and expect a nested connection block with details about how to connect. See connection

Initializer

Properties


HostRequired

  • Type: *string
The address of the resource to connect to.

TypeRequired

  • Type: *string
The connection type. Valid values are “ssh” and “winrm”. Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.

CacertOptional

  • Type: *string
The CA certificate to validate against.

HttpsOptional

  • Type: *bool
Set to true to connect using HTTPS instead of HTTP.

InsecureOptional

  • Type: *bool
Set to true to skip validating the HTTPS certificate chain.

PasswordOptional

  • Type: *string
The password to use for the connection.

PortOptional

  • Type: *f64
  • Default: 22
The port to connect to.

ScriptPathOptional

  • Type: *string
The path used to copy scripts meant for remote execution. Refer to How Provisioners Execute Remote Scripts below for more details

TimeoutOptional

  • Type: *string
  • Default: 5m
The timeout to wait for the connection to become available. Should be provided as a string (e.g., ”30s” or “5m”.)

UseNtlmOptional

  • Type: *bool
Set to true to use NTLM authentication rather than default (basic authentication), removing the requirement for basic authentication to be enabled within the target guest. Refer to Authentication for Remote Connections in the Windows App Development documentation for more details.

UserOptional

  • Type: *string
  • Default: root
The user to use for the connection.