[macos] Convert packer templates to HCL2 (#9098)

* [macos] Convert packer templates to HCL2

* Fix inline shell provisioner

* Fix folder name

* Fix bootstrap folder copy
This commit is contained in:
Shamil Mubarakshin
2024-01-05 12:29:46 +01:00
committed by GitHub
parent 9da2ec6b06
commit 4960fde8f7
9 changed files with 615 additions and 535 deletions

View File

@@ -63,6 +63,7 @@ jobs:
'Using ssh communicator to connect:'
)
packer init ${{ parameters.template_path }}
packer build -on-error=abort `
-var="vcenter_server=$(vcenter-server-v2)" `
-var="vcenter_username=$(vcenter-username-v2)" `

View File

@@ -19,5 +19,5 @@ jobs:
parameters:
image_label: 'macOS Big Sur'
base_image_name: 'clean-macOS-11-380Gb-runner'
template_path: 'templates/macOS-11.json'
template_path: 'templates/macOS-11.pkr.hcl'
target_datastore: 'ds-image'

View File

@@ -19,5 +19,5 @@ jobs:
parameters:
image_label: 'macOS Monterey'
base_image_name: 'clean-macOS-12-380Gb-runner'
template_path: 'templates/macOS-12.json'
template_path: 'templates/macOS-12.pkr.hcl'
target_datastore: 'ds-image'