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:
parent
a9bec7945e
commit
fbb9429910
|
@ -215,13 +215,13 @@ source "googlecompute" "windows-example" {
|
|||
project_id = "MY_PROJECT"
|
||||
source_image = "windows-server-2019-dc-v20200813"
|
||||
zone = "us-central1-a"
|
||||
disk_size = 50,
|
||||
machine_type = "n1-standard-2",
|
||||
communicator ="winrm",
|
||||
winrm_username = "packer_user",
|
||||
winrm_insecure = true,
|
||||
winrm_use_ssl = true,
|
||||
metadata {
|
||||
disk_size = 50
|
||||
machine_type = "n1-standard-2"
|
||||
communicator = "winrm"
|
||||
winrm_username = "packer_user"
|
||||
winrm_insecure = true
|
||||
winrm_use_ssl = true
|
||||
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\"}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue