diff --git a/README.md b/README.md index 7b12f3d..af8fd66 100644 --- a/README.md +++ b/README.md @@ -50,17 +50,17 @@ on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installin ## Usage -To fetch information about the latest macOS Big Sur release: +To fetch information about the latest macOS Ventura release: ```hcl -data "ipsw" "bigsur" { +data "ipsw" "ventura" { os = "macOS" version = "^13" device = "VirtualMac2,1" } ``` -Then use result via e.g. `${data.ipsw.bigsur.version}` and `${data.ipsw.bigsur.url}`. +Then use result via e.g. `${data.ipsw.ventura.version}` and `${data.ipsw.ventura.url}`. ## Configuration diff --git a/datasource/test-fixtures/template.pkr.hcl b/datasource/test-fixtures/template.pkr.hcl index 46876e2..1d24529 100644 --- a/datasource/test-fixtures/template.pkr.hcl +++ b/datasource/test-fixtures/template.pkr.hcl @@ -5,7 +5,7 @@ variable "appledb_test_path" { type = string } -data "ipsw" "bigsur" { +data "ipsw" "ventura" { os = "macOS" version = "^13" device = "VirtualMac2,1" @@ -14,7 +14,7 @@ data "ipsw" "bigsur" { appledb_local_path = var.appledb_test_path } -data "ipsw" "bigsur-beta" { +data "ipsw" "ventura-beta" { os = "macOS" version = "^13-0" device = "VirtualMac2,1" @@ -34,29 +34,29 @@ build { provisioner "shell-local" { inline = [ - "echo '${data.ipsw.bigsur.os} ${data.ipsw.bigsur.version}'", - "echo '${data.ipsw.bigsur.version_components.major}' | grep 13", - "echo '${data.ipsw.bigsur.version_components.minor}' | grep 4", - "echo '${data.ipsw.bigsur.version_components.patch}' | grep 1", - "echo '${data.ipsw.bigsur.version_components.prerelease}' | grep '^$'", - "echo '${data.ipsw.bigsur.version_components.metadata}' | grep 22F82", - "echo '${data.ipsw.bigsur.released}' | grep 2023-06-21", - "echo '${data.ipsw.bigsur.beta}' | grep false", - "echo '${data.ipsw.bigsur.url}' | grep 22F82", + "echo '${data.ipsw.ventura.os} ${data.ipsw.ventura.version}'", + "echo '${data.ipsw.ventura.version_components.major}' | grep 13", + "echo '${data.ipsw.ventura.version_components.minor}' | grep 4", + "echo '${data.ipsw.ventura.version_components.patch}' | grep 1", + "echo '${data.ipsw.ventura.version_components.prerelease}' | grep '^$'", + "echo '${data.ipsw.ventura.version_components.metadata}' | grep 22F82", + "echo '${data.ipsw.ventura.released}' | grep 2023-06-21", + "echo '${data.ipsw.ventura.beta}' | grep false", + "echo '${data.ipsw.ventura.url}' | grep 22F82", ] } provisioner "shell-local" { inline = [ - "echo '${data.ipsw.bigsur-beta.os} ${data.ipsw.bigsur-beta.version}'", - "echo '${data.ipsw.bigsur-beta.version_components.major}' | grep 13", - "echo '${data.ipsw.bigsur-beta.version_components.minor}' | grep 5", - "echo '${data.ipsw.bigsur-beta.version_components.patch}' | grep 0", - "echo '${data.ipsw.bigsur-beta.version_components.prerelease}' | grep beta.5", - "echo '${data.ipsw.bigsur-beta.version_components.metadata}' | grep 22G5072a", - "echo '${data.ipsw.bigsur-beta.released}' | grep 2023-07-10", - "echo '${data.ipsw.bigsur-beta.beta}' | grep true", - "echo '${data.ipsw.bigsur-beta.url}' | grep 22G5072a", + "echo '${data.ipsw.ventura-beta.os} ${data.ipsw.ventura-beta.version}'", + "echo '${data.ipsw.ventura-beta.version_components.major}' | grep 13", + "echo '${data.ipsw.ventura-beta.version_components.minor}' | grep 5", + "echo '${data.ipsw.ventura-beta.version_components.patch}' | grep 0", + "echo '${data.ipsw.ventura-beta.version_components.prerelease}' | grep beta.5", + "echo '${data.ipsw.ventura-beta.version_components.metadata}' | grep 22G5072a", + "echo '${data.ipsw.ventura-beta.released}' | grep 2023-07-10", + "echo '${data.ipsw.ventura-beta.beta}' | grep true", + "echo '${data.ipsw.ventura-beta.url}' | grep 22G5072a", ] } } diff --git a/docs/datasources/ipsw.mdx b/docs/datasources/ipsw.mdx index 5adec89..74c511b 100644 --- a/docs/datasources/ipsw.mdx +++ b/docs/datasources/ipsw.mdx @@ -17,17 +17,17 @@ data and IPSW URLs for builders such as [Tart](https://github.com/cirruslabs/pac ## Usage -To fetch information about the latest macOS Big Sur release: +To fetch information about the latest macOS Ventura release: ```hcl -data "ipsw" "bigsur" { +data "ipsw" "ventura" { os = "macOS" version = "^13" device = "VirtualMac2,1" } ``` -Then use result via e.g. `${data.ipsw.bigsur.version}` and `${data.ipsw.bigsur.url}`. +Then use result via e.g. `${data.ipsw.ventura.version}` and `${data.ipsw.ventura.url}`. ## Configuration