Finished packer scripts for Debian 12
This commit is contained in:
@ -50,19 +50,20 @@ source "vsphere-iso" "debian-12" {
|
||||
}
|
||||
// ****************
|
||||
ssh_username = var.connection_username
|
||||
ssh_password = var.connection_password
|
||||
//ssh_password = var.connection_password
|
||||
ssh_private_key_file = var.connection_ssh_private_key_file
|
||||
ssh_port = "22"
|
||||
ip_wait_timeout = "15m"
|
||||
ip_wait_timeout = "25m"
|
||||
ssh_timeout = "10m"
|
||||
ssh_handshake_attempts = "20"
|
||||
shutdown_timeout = "15m"
|
||||
shutdown_timeout = "10m"
|
||||
// ****************
|
||||
iso_checksum = var.iso_checksum
|
||||
// iso_url = var.os_iso_url
|
||||
iso_paths = [var.os_iso_paths]
|
||||
// ****************
|
||||
|
||||
boot_wait = "5s"
|
||||
boot_wait = "8s"
|
||||
boot_command = [var.boot_command]
|
||||
|
||||
}
|
||||
@ -70,4 +71,17 @@ source "vsphere-iso" "debian-12" {
|
||||
build {
|
||||
name = "template"
|
||||
sources = ["source.vsphere-iso.debian-12"]
|
||||
|
||||
provisioner "file" {
|
||||
destination = "/tmp/prep-script.sh"
|
||||
source = "${path.root}data/prep-script.sh"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"sudo chmod 755 /tmp/prep-script.sh",
|
||||
"sudo /tmp/prep-script.sh",
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user