Configurable SSH port (#9660)

This commit is contained in:
Pavel Iakovenko
2024-04-09 02:50:21 -07:00
committed by GitHub
parent 27614dc1de
commit a659eb9650
5 changed files with 35 additions and 5 deletions

View File

@@ -24,6 +24,11 @@ variable "source_vm_name" {
type = string
}
variable "source_vm_port" {
type = number
default = 22
}
variable "source_vm_tag" {
type = string
default = ""
@@ -89,8 +94,9 @@ source "veertu-anka-vm-clone" "template" {
source "null" "template" {
ssh_host = "${var.source_vm_name}"
ssh_port = "${var.source_vm_port}"
ssh_username = "${var.vm_username}"
ssh_password = "${var.vm_password}"
ssh_private_key_file = "${var.vm_password}"
ssh_proxy_host = "${var.socks_proxy}"
}

View File

@@ -24,6 +24,11 @@ variable "source_vm_name" {
type = string
}
variable "source_vm_port" {
type = number
default = 22
}
variable "source_vm_tag" {
type = string
default = ""
@@ -89,8 +94,9 @@ source "veertu-anka-vm-clone" "template" {
source "null" "template" {
ssh_host = "${var.source_vm_name}"
ssh_port = "${var.source_vm_port}"
ssh_username = "${var.vm_username}"
ssh_password = "${var.vm_password}"
ssh_private_key_file = "${var.vm_password}"
ssh_proxy_host = "${var.socks_proxy}"
}

View File

@@ -24,6 +24,11 @@ variable "source_vm_name" {
type = string
}
variable "source_vm_port" {
type = number
default = 22
}
variable "source_vm_tag" {
type = string
default = ""
@@ -90,8 +95,9 @@ source "veertu-anka-vm-clone" "template" {
source "null" "template" {
ssh_host = "${var.source_vm_name}"
ssh_port = "${var.source_vm_port}"
ssh_username = "${var.vm_username}"
ssh_password = "${var.vm_password}"
ssh_private_key_file = "${var.vm_password}"
ssh_proxy_host = "${var.socks_proxy}"
}

View File

@@ -24,6 +24,11 @@ variable "source_vm_name" {
type = string
}
variable "source_vm_port" {
type = number
default = 22
}
variable "source_vm_tag" {
type = string
default = ""
@@ -89,8 +94,9 @@ source "veertu-anka-vm-clone" "template" {
source "null" "template" {
ssh_host = "${var.source_vm_name}"
ssh_port = "${var.source_vm_port}"
ssh_username = "${var.vm_username}"
ssh_password = "${var.vm_password}"
ssh_private_key_file = "${var.vm_password}"
ssh_proxy_host = "${var.socks_proxy}"
}

View File

@@ -24,6 +24,11 @@ variable "source_vm_name" {
type = string
}
variable "source_vm_port" {
type = number
default = 22
}
variable "source_vm_tag" {
type = string
default = ""
@@ -90,8 +95,9 @@ source "veertu-anka-vm-clone" "template" {
source "null" "template" {
ssh_host = "${var.source_vm_name}"
ssh_port = "${var.source_vm_port}"
ssh_username = "${var.vm_username}"
ssh_password = "${var.vm_password}"
ssh_private_key_file = "${var.vm_password}"
ssh_proxy_host = "${var.socks_proxy}"
}