Skip to content

Commit

Permalink
add plugin blocks into files, as not including them is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Andary committed Oct 16, 2023
1 parent 45db8ae commit f8918db
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ubuntu/ubuntu-box.pkr.hcl
Original file line number Diff line number Diff line change
@@ -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 = ["<wait>e<wait5>", "<down><wait><down><wait><down><wait2><end><wait5>", "<bs><bs><bs><bs><wait>autoinstall ---<wait><f10>"]
boot_wait = "2s"
Expand Down
9 changes: 9 additions & 0 deletions ubuntu/ubuntu-flat.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["<wait>e<wait5>", "<down><wait><down><wait><down><wait2><end><wait5>", "<bs><bs><bs><bs><wait>autoinstall ---<wait><f10>"]
boot_wait = "2s"
Expand Down
9 changes: 9 additions & 0 deletions ubuntu/ubuntu-lvm.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
packer {
required_plugins {
qemu = {
source = "github.com/hashicorp/qemu"
version = "~> 1"
}
}
}

source "qemu" "lvm" {
boot_command = ["<wait>e<wait5>", "<down><wait><down><wait><down><wait2><end><wait5>", "<bs><bs><bs><bs><wait>autoinstall ---<wait><f10>"]
boot_wait = "2s"
Expand Down

0 comments on commit f8918db

Please sign in to comment.