From 54fa12a3317f0fdfcde9422a4f9f545dbd9bf00e Mon Sep 17 00:00:00 2001 From: Iwan Clement Date: Mon, 17 Jan 2022 09:41:12 +0100 Subject: [PATCH] seedfrom --- data/QuickAndDirty/test.pkr.hcl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/data/QuickAndDirty/test.pkr.hcl b/data/QuickAndDirty/test.pkr.hcl index 3ee8d03..300d244 100644 --- a/data/QuickAndDirty/test.pkr.hcl +++ b/data/QuickAndDirty/test.pkr.hcl @@ -43,10 +43,16 @@ source "proxmox" "ubuntu" { #cd_files = ["./ubuntu-20.04/user-data", "./ubuntu-20.04/meta-data"] #cd_label = "cidata" boot_command = [ - " ", - "autoinstall ds=nocloud;", - "" + " ", + "autoinstall ds=nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/", + "" ] + shutdown_command": "shutdown -P now" + #boot_command = [ + # " ", + # "autoinstall ds=nocloud;", + # "" + #] } build {