From 555715588d4794fa0875d8dc3998bda0099bd77d Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Tue, 8 Nov 2022 13:59:35 +0400 Subject: [PATCH] README.md: more realistic Packer HCL example (#308) * README.md: more realistic Packer HCL example * Update README.md Co-authored-by: Fedor Korotkov * Update README.md Co-authored-by: Fedor Korotkov Co-authored-by: Fedor Korotkov --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3c36913..b25bfc3 100644 --- a/README.md +++ b/README.md @@ -181,15 +181,24 @@ Please refer to [Tart Packer Plugin repository](https://github.com/cirruslabs/pa Here is an example of a template to build `monterey-base` local image based of a remote image: ```hcl +packer { + required_plugins { + tart = { + version = ">= 0.5.3" + source = "github.com/cirruslabs/tart" + } + } +} + source "tart-cli" "tart" { + vm_base_name = "ghcr.io/cirruslabs/macos-ventura-base:latest" + vm_name = "my-custom-ventura" cpu_count = 4 - disk_size_gb = 32 memory_gb = 8 + disk_size_gb = 70 ssh_password = "admin" ssh_timeout = "120s" ssh_username = "admin" - vm_base_name = "tartvm/vanilla:latest" - vm_name = "monterey-base" } build { @@ -198,6 +207,7 @@ build { provisioner "shell" { inline = ["echo 'Disabling spotlight indexing...'", "sudo mdutil -a -i off"] } + # more provisioners } ```