update ubuntu example to use floppy_files for cloud-config
This commit is contained in:
parent
d9cb44c847
commit
7a4a1d0b9b
@ -65,12 +65,10 @@ source "xenserver-iso" "ubuntu-2004" {
|
|||||||
vm_memory = 4096
|
vm_memory = 4096
|
||||||
disk_size = 20000
|
disk_size = 20000
|
||||||
|
|
||||||
http_directory = "examples/http/ubuntu-2004"
|
floppy_files = [
|
||||||
boot_command = [
|
"examples/http/ubuntu-2004/meta-data",
|
||||||
"<esc><f6> autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/<enter><wait>",
|
"examples/http/ubuntu-2004/user-data",
|
||||||
"<f6><wait><esc><wait> autoinstall ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/<enter><wait>"
|
|
||||||
]
|
]
|
||||||
boot_wait = "10s"
|
|
||||||
|
|
||||||
ssh_username = "testuser"
|
ssh_username = "testuser"
|
||||||
ssh_password = "ubuntu"
|
ssh_password = "ubuntu"
|
||||||
@ -83,4 +81,4 @@ source "xenserver-iso" "ubuntu-2004" {
|
|||||||
|
|
||||||
build {
|
build {
|
||||||
sources = ["xenserver-iso.ubuntu-2004"]
|
sources = ["xenserver-iso.ubuntu-2004"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user