From 56c7b7253a501127dff673643b9c1b7a1fefcb1c Mon Sep 17 00:00:00 2001 From: Eugene Zamriy Date: Tue, 12 Dec 2023 17:17:38 +0300 Subject: [PATCH] Freezes Packer environment configuration This is required to have reproducible image build environments. Frozen component versions: * packer = 1.10.0 * ansible plugin = 1.1.1 * qemu plugin = 1.0.10 * vagrant plugin = 1.1.1 * virtualbox plugin = 1.0.5 * vmware plugin = 1.0.8 --- README.md | 4 +++- packer-environment.pkr.hcl | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 packer-environment.pkr.hcl diff --git a/README.md b/README.md index 76ef92c..6e340e8 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ $ dnf install ansible-core ``` Then follow the Packer installation [instructions](https://developer.hashicorp.com/packer/downloads?product_intent=packer). +Check the [packer-environment.pkr.hcl](packer-environment.pkr.hcl) file +for the required Packer version. Alternatively, you can install a Packer binary from a Yandex [mirror](https://hashicorp-releases.yandexcloud.net/packer/): just download a @@ -27,7 +29,7 @@ Verify that Packer works: ```shell $ packer version -1.9.4 +1.10.0 ``` In order to install required Packer plugins run the following command in the diff --git a/packer-environment.pkr.hcl b/packer-environment.pkr.hcl new file mode 100644 index 0000000..c9abcbd --- /dev/null +++ b/packer-environment.pkr.hcl @@ -0,0 +1,30 @@ +packer { + required_version = "= 1.10.0" + + required_plugins { + ansible = { + version = "= 1.1.1" + source = "github.com/hashicorp/ansible" + } + + qemu = { + version = "= 1.0.10" + source = "github.com/hashicorp/qemu" + } + + vagrant = { + version = "= 1.1.1" + source = "github.com/hashicorp/vagrant" + } + + virtualbox = { + version = "= 1.0.5" + source = "github.com/hashicorp/virtualbox" + } + + vmware = { + version = "= 1.0.8" + source = "github.com/hashicorp/vmware" + } + } +} -- 2.36.5