From 5e41bc7ee4f9f5e810233cebdef853fb8915278a Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Thu, 23 Feb 2023 16:53:46 +0100 Subject: [PATCH] Refactor using multi-file setup --- packer/ova/packer-node.json | 2 ++ packer/ova/ubuntu-2204.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packer/ova/packer-node.json b/packer/ova/packer-node.json index 36363ac..d728e01 100644 --- a/packer/ova/packer-node.json +++ b/packer/ova/packer-node.json @@ -85,6 +85,8 @@ "{{user `boot_command_suffix`}}" ], "boot_wait": "{{user `boot_wait`}}", + "cd_files": ["{{user `cd_file_path`}}/meta-data", "{{user `cd_file_path`}}/user-data"], + "cd_label": "cidata", "communicator": "ssh", "cores": "{{user `cpu_cores`}}", "cpus": "{{user `cpu`}}", diff --git a/packer/ova/ubuntu-2204.json b/packer/ova/ubuntu-2204.json index a681266..93a9452 100644 --- a/packer/ova/ubuntu-2204.json +++ b/packer/ova/ubuntu-2204.json @@ -1,13 +1,13 @@ { "boot_command_prefix": "clinux /casper/vmlinuz --- autoinstall quietinitrd /casper/initrdboot", "boot_disable_ipv6": "0", + "boot_media_path": "/media/HTTP", "build_name": "ubuntu-2204", + "cd_file_path": "./packer/ova/linux/{{user `distro_name`}}/http/{{user `distro_version`}}", "distro_arch": "amd64", "distro_name": "ubuntu", "distro_version": "22.04", "guest_os_type": "ubuntu-64", - "cd_files": "./packer/ova/linux/{{user `distro_name`}}/http/{{user `distro_version`}}/*", - "cd_label": "cidata", "iso_checksum": "10f19c5b2b8d6db711582e0e27f5116296c34fe4b313ba45f9b201a5007056cb", "iso_checksum_type": "sha256", "iso_url": "https://releases.ubuntu.com/22.04/ubuntu-22.04.1-live-server-amd64.iso",