commit 26665e287fa0c4790fcc29c2aac3192528f6cfe6 parent af7f1654871bbf5d077f00c8c98b2841b871d739 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Mon, 28 Jul 2025 18:55:51 +0200 doc: add amd64 build example Diffstat:
M | README.md | | | 14 | ++++++++++++-- |
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md @@ -16,6 +16,7 @@ Example architecture with 5 RaspberyPi nodes: | 02 | arm64 | 4GB | client/server | server | | 03 | arm64 | 4GB | client | n/a | | 04 | arm64 | 4GB | client/server | server | +| 05 | amd64 | 4GB | client/server | server | For best [performance on low power devices](https://developer.hashicorp.com/consul/docs/install/performance), the @@ -218,15 +219,24 @@ Initialize required packer plugins: sudo packer init . ``` -Run packer with a value file to build an image for one host: +Run packer with a value file to build an image for one host. Example for arm64 host: ```bash sudo packer build \ - -only cross.hashipi \ # change to qemu.hashiintel to build amd images + -only cross.hashipi \ -var-file=variables.auto.pkrvars.hcl \ -var-file=hosts/pi0.pkrvars.hcl \ hashi-pi.pkr.hcl ``` +Example for amd64 host: +```bash +sudo packer build \ + -only qemu.hashiintel \ + -var-file=variables.auto.pkrvars.hcl \ + -var-file=hosts/intel0.pkrvars.hcl \ + hashi-pi.pkr.hcl +``` + The `variable.auto.pkrvars.hcl` contains all sensitive packer variables. ## Write Image to SD Card