2020-07-02 05:07:59 -04:00
|
|
|
variable "ubuntu_1804_version" {
|
2021-03-23 07:31:13 -04:00
|
|
|
default = "18.04.5"
|
2020-07-02 05:07:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
locals {
|
2021-03-23 07:31:13 -04:00
|
|
|
iso_url_ubuntu_1804 = "http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/ubuntu-${var.ubuntu_1804_version}-server-amd64.iso"
|
2020-07-02 05:07:59 -04:00
|
|
|
iso_checksum_url_ubuntu_1804 = "http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/SHA256SUMS"
|
|
|
|
ubuntu_1804_boot_command = [
|
|
|
|
"<esc><wait>",
|
|
|
|
"<esc><wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"/install/vmlinuz<wait>",
|
|
|
|
" auto<wait>",
|
|
|
|
" console-setup/ask_detect=false<wait>",
|
|
|
|
" console-setup/layoutcode=us<wait>",
|
|
|
|
" console-setup/modelcode=pc105<wait>",
|
|
|
|
" debconf/frontend=noninteractive<wait>",
|
|
|
|
" debian-installer=en_US.UTF-8<wait>",
|
|
|
|
" fb=false<wait>",
|
|
|
|
" initrd=/install/initrd.gz<wait>",
|
|
|
|
" kbd-chooser/method=us<wait>",
|
|
|
|
" keyboard-configuration/layout=USA<wait>",
|
|
|
|
" keyboard-configuration/variant=USA<wait>",
|
|
|
|
" locale=en_US.UTF-8<wait>",
|
|
|
|
" netcfg/get_domain=vm<wait>",
|
|
|
|
" netcfg/get_hostname=vagrant<wait>",
|
|
|
|
" grub-installer/bootdev=/dev/sda<wait>",
|
|
|
|
" noapic<wait>",
|
|
|
|
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/${var.preseed_path}<wait>",
|
|
|
|
" -- <wait>",
|
|
|
|
"<enter><wait>"
|
|
|
|
]
|
|
|
|
}
|