summaryrefslogtreecommitdiffstats
path: root/hcl2/base.pkr.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'hcl2/base.pkr.hcl')
-rw-r--r--hcl2/base.pkr.hcl25
1 files changed, 25 insertions, 0 deletions
diff --git a/hcl2/base.pkr.hcl b/hcl2/base.pkr.hcl
new file mode 100644
index 0000000..0a7ec92
--- /dev/null
+++ b/hcl2/base.pkr.hcl
@@ -0,0 +1,25 @@
+# A build block invokes sources and runs provisioning steps on them.
+# The documentation for build blocks can be found here:
+# https://www.packer.io/docs/templates/hcl_templates/blocks/build
+
+packer {
+ required_plugins {
+ qemu = {
+ source = "github.com/hashicorp/qemu"
+ version = "~> 1"
+ }
+ ansible = {
+ source = "github.com/hashicorp/ansible"
+ version = "~> 1"
+ }
+ }
+}
+
+build {
+ name = "base"
+ sources = ["source.qemu.ansible"]
+
+ post-processor "manifest" {
+ output = "${var.output_directory}/manifest.json"
+ }
+}