HCL2 example syntax changes (#10832)

An HCL2 example contained commas to separate the lines, and the metadata block did not have the equals sign, which is not valid.
This commit is contained in:
Kaivalya Shah 2021-03-29 14:30:42 +05:30 committed by GitHub
parent a9bec7945e
commit fbb9429910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -215,13 +215,13 @@ source "googlecompute" "windows-example" {
project_id = "MY_PROJECT" project_id = "MY_PROJECT"
source_image = "windows-server-2019-dc-v20200813" source_image = "windows-server-2019-dc-v20200813"
zone = "us-central1-a" zone = "us-central1-a"
disk_size = 50, disk_size = 50
machine_type = "n1-standard-2", machine_type = "n1-standard-2"
communicator ="winrm", communicator = "winrm"
winrm_username = "packer_user", winrm_username = "packer_user"
winrm_insecure = true, winrm_insecure = true
winrm_use_ssl = true, winrm_use_ssl = true
metadata { metadata = {
windows-startup-script-cmd = "winrm quickconfig -quiet & net user /add packer_user & net localgroup administrators packer_user /add & winrm set winrm/config/service/auth @{Basic=\"true\"}" windows-startup-script-cmd = "winrm quickconfig -quiet & net user /add packer_user & net localgroup administrators packer_user /add & winrm set winrm/config/service/auth @{Basic=\"true\"}"
} }
} }