Updated syntax for Packer v1.5.2
This commit is contained in:
parent
5e75334b9d
commit
f9fd4803de
@ -1,9 +1,9 @@
|
|||||||
source "hcloud" "main" {
|
source "hcloud" "main" {
|
||||||
image = "ubuntu-18.04"
|
image = "ubuntu-18.04"
|
||||||
|
server_name = "wireguard-{{timestamp}}"
|
||||||
server_type = "cx11"
|
server_type = "cx11"
|
||||||
location = "fsn1"
|
location = "fsn1"
|
||||||
|
|
||||||
server_name = "wireguard-{{timestamp}}"
|
|
||||||
snapshot_name = "wireguard-{{timestamp}}"
|
snapshot_name = "wireguard-{{timestamp}}"
|
||||||
snapshot_labels {
|
snapshot_labels {
|
||||||
service = "wireguard"
|
service = "wireguard"
|
||||||
@ -21,16 +21,16 @@ source "qemu" "main" {
|
|||||||
disk_image = true
|
disk_image = true
|
||||||
|
|
||||||
vm_name = "wireguard.qcow2"
|
vm_name = "wireguard.qcow2"
|
||||||
http_directory = "{{template_dir}}/qemu/http/"
|
http_directory = "./qemu/http/"
|
||||||
output_directory = "{{template_dir}}/qemu/dist/"
|
output_directory = "./qemu/dist/"
|
||||||
|
|
||||||
accelerator = "kvm"
|
accelerator = "kvm"
|
||||||
cpus = 1
|
cpus = 1
|
||||||
memory = 512
|
memory = 512
|
||||||
headless = true
|
headless = true
|
||||||
qemuargs {
|
qemuargs = [
|
||||||
qemuargs = ["-smbios", "type=1,serial=ds=nocloud-net;s=http://{{.HTTPIP}}:{{.HTTPPort}}/seed/"]
|
["-smbios", "type=1,serial=ds=nocloud-net;s=http://{{.HTTPIP}}:{{.HTTPPort}}/seed/"]
|
||||||
}
|
]
|
||||||
|
|
||||||
net_device = "virtio-net"
|
net_device = "virtio-net"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user