Correct some mistakes

This commit is contained in:
2024-09-19 22:45:38 +03:00
parent df81645473
commit dee4f1a22b
6 changed files with 16 additions and 28 deletions

View File

@ -16,10 +16,10 @@ packer {
}
}
// BLOCK: locals
// Defines the local variables.
//locals {
// bbbbb = "aaaa"
// var1 = "var1"
//}
source "vsphere-iso" "debian-12" {
@ -49,11 +49,11 @@ source "vsphere-iso" "debian-12" {
network_card = var.vm_network_nic_type
}
// ****************
ip_wait_timeout = "45m"
ssh_username = var.connection_username
ssh_password = var.connection_password
ssh_timeout = "12h"
ssh_port = "22"
ip_wait_timeout = "15m"
ssh_timeout = "10m"
ssh_handshake_attempts = "20"
shutdown_timeout = "15m"
// ****************
@ -63,20 +63,9 @@ source "vsphere-iso" "debian-12" {
// ****************
boot_wait = "5s"
boot_command = [
"<esc><wait>",
"<esc><wait>",
"/install.amd/vmlinuz <wait>",
"ipv6.disable=1 <wait>",
"auto=true <wait>",
"netcfg/dhcp_timeout=30 <wait>",
"priority=critical locale=en_US <wait>",
"preseed/url=http://aassdd.ru/.my-preseed/debian/preseed.cfg <wait>",
"--- <wait>",
"initrd=/install.amd/initrd.gz<wait><enter>"
]
}
boot_command = [var.boot_command]
}
build {
name = "template"