Skip to content

Commit

Permalink
Configurable SSH port (#9660)
Browse files Browse the repository at this point in the history
  • Loading branch information
paveliak authored Apr 9, 2024
1 parent 27614dc commit a659eb9
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
8 changes: 7 additions & 1 deletion images/macos/templates/macOS-12.anka.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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}"
}

Expand Down
8 changes: 7 additions & 1 deletion images/macos/templates/macOS-13.anka.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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}"
}

Expand Down
8 changes: 7 additions & 1 deletion images/macos/templates/macOS-13.arm64.anka.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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}"
}

Expand Down
8 changes: 7 additions & 1 deletion images/macos/templates/macOS-14.anka.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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}"
}

Expand Down
8 changes: 7 additions & 1 deletion images/macos/templates/macOS-14.arm64.anka.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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}"
}

Expand Down

0 comments on commit a659eb9

Please # to comment.