From f8918dbdfd45af15e3bbf024bd043ff0218cc78d Mon Sep 17 00:00:00 2001 From: Stephen Andary Date: Mon, 16 Oct 2023 16:15:40 -0400 Subject: [PATCH] add plugin blocks into files, as not including them is deprecated --- ubuntu/ubuntu-box.pkr.hcl | 17 +++++++++++++++++ ubuntu/ubuntu-flat.pkr.hcl | 9 +++++++++ ubuntu/ubuntu-lvm.pkr.hcl | 9 +++++++++ 3 files changed, 35 insertions(+) diff --git a/ubuntu/ubuntu-box.pkr.hcl b/ubuntu/ubuntu-box.pkr.hcl index 14308faf..da9ef91b 100644 --- a/ubuntu/ubuntu-box.pkr.hcl +++ b/ubuntu/ubuntu-box.pkr.hcl @@ -1,3 +1,20 @@ +packer { + required_plugins { + qemu = { + source = "github.com/hashicorp/qemu" + version = "~> 1" + } + virtualbox = { + version = "~> 1" + source = "github.com/hashicorp/virtualbox" + } + vagrant = { + source = "github.com/hashicorp/vagrant" + version = "~> 1" + } + } +} + source "virtualbox-iso" "box" { boot_command = ["e", "", "autoinstall ---"] boot_wait = "2s" diff --git a/ubuntu/ubuntu-flat.pkr.hcl b/ubuntu/ubuntu-flat.pkr.hcl index aea17632..4b55b3ea 100644 --- a/ubuntu/ubuntu-flat.pkr.hcl +++ b/ubuntu/ubuntu-flat.pkr.hcl @@ -4,6 +4,15 @@ variable "flat_filename" { description = "The filename of the tarball to produce" } +packer { + required_plugins { + qemu = { + source = "github.com/hashicorp/qemu" + version = "~> 1" + } + } +} + source "qemu" "flat" { boot_command = ["e", "", "autoinstall ---"] boot_wait = "2s" diff --git a/ubuntu/ubuntu-lvm.pkr.hcl b/ubuntu/ubuntu-lvm.pkr.hcl index 5819c989..e23fa8d1 100644 --- a/ubuntu/ubuntu-lvm.pkr.hcl +++ b/ubuntu/ubuntu-lvm.pkr.hcl @@ -1,3 +1,12 @@ +packer { + required_plugins { + qemu = { + source = "github.com/hashicorp/qemu" + version = "~> 1" + } + } +} + source "qemu" "lvm" { boot_command = ["e", "", "autoinstall ---"] boot_wait = "2s"