Created
January 25, 2023 07:42
-
-
Save alexwaibel/accea6bda9a2961277294eff5748b119 to your computer and use it in GitHub Desktop.
Minimal debian build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "proxmox-iso" "debian_cloudinit" { | |
proxmox_url = "https://${var.proxmox_ip}:${var.proxmox_port}/api2/json" | |
username = var.proxmox_username | |
password = var.proxmox_password | |
node = var.proxmox_node | |
iso_url = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso" | |
iso_storage_pool = var.proxmox_iso_storage_pool | |
iso_checksum = "sha512:224cd98011b9184e49f858a46096c6ff4894adff8945ce89b194541afdfd93b73b4666b0705234bd4dff42c0a914fdb6037dd0982efb5813e8a553d8e92e6f51" | |
insecure_skip_tls_verify = true | |
ssh_username = "debian" | |
ssh_password = "packer" | |
ssh_wait_timeout = "10000s" | |
boot_command = [ | |
"<esc><wait>", | |
"auto", | |
"<spacebar>", | |
"url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", | |
"<enter>" | |
] | |
boot_wait = "10s" | |
http_content = { | |
"/preseed.cfg" = templatefile("${path.root}../../../packer/templates/debian-preseed.pkrtpl.hcl", { domain = var.domain }) | |
} | |
} | |
build { | |
sources = ["source.proxmox-iso.debian_cloudinit"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment