github.com/hashicorp/packer@v1.14.3/examples/hcl/linux/variables.16.04.pkr.hcl (about)

     1  variable "ubuntu_1604_version" {
     2    default = "16.04.7"
     3  }
     4  
     5  locals {
     6    iso_url_ubuntu_1604           = "http://releases.ubuntu.com/releases/16.04/ubuntu-${var.ubuntu_1604_version}-server-amd64.iso"
     7    iso_checksum_url_ubuntu_1604  = "http://releases.ubuntu.com/releases/16.04/SHA256SUMS"
     8    ubuntu_1604_boot_command      = [
     9      "<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    10      "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    11      "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    12      "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
    13      "/install/vmlinuz<wait>",
    14      " auto<wait>",
    15      " console-setup/ask_detect=false<wait>",
    16      " console-setup/layoutcode=us<wait>",
    17      " console-setup/modelcode=pc105<wait>",
    18      " debconf/frontend=noninteractive<wait>",
    19      " debian-installer=en_US.UTF-8<wait>",
    20      " fb=false<wait>",
    21      " initrd=/install/initrd.gz<wait>",
    22      " kbd-chooser/method=us<wait>",
    23      " keyboard-configuration/layout=USA<wait>",
    24      " keyboard-configuration/variant=USA<wait>",
    25      " locale=en_US.UTF-8<wait>",
    26      " netcfg/get_domain=vm<wait>",
    27      " netcfg/get_hostname=vagrant<wait>",
    28      " grub-installer/bootdev=/dev/sda<wait>",
    29      " noapic<wait>",
    30      " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/${var.preseed_path}<wait>",
    31      " -- <wait>",
    32      "<enter><wait>"
    33    ]
    34  }