update ubuntu example to use floppy_files for cloud-config

This commit is contained in:
John Jones 2021-12-14 18:57:22 -08:00
parent d9cb44c847
commit 7a4a1d0b9b
No known key found for this signature in database
GPG Key ID: C79BB6555D68F225

View File

@ -65,12 +65,10 @@ source "xenserver-iso" "ubuntu-2004" {
vm_memory = 4096
disk_size = 20000
http_directory = "examples/http/ubuntu-2004"
boot_command = [
"<esc><f6> autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/<enter><wait>",
"<f6><wait><esc><wait> autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/<enter><wait>"
floppy_files = [
"examples/http/ubuntu-2004/meta-data",
"examples/http/ubuntu-2004/user-data",
]
boot_wait = "10s"
ssh_username = "testuser"
ssh_password = "ubuntu"
@ -83,4 +81,4 @@ source "xenserver-iso" "ubuntu-2004" {
build {
sources = ["xenserver-iso.ubuntu-2004"]
}
}