Hi all, wanted to see if there is an easy way to use variables in
powershell provisioner.
currently i have variable declared as the following and want to replace the
[[key]] to be the variable but i am unable to find any examples on how to
do this.
"variables":{
"key_info": "1234567890"
}
"type": "powershell",
"inline": [
"Start-Process -FilePath \"C:\\atmp\\vs_enterprise.exe\"
-ArgumentList \"--add Microsoft.VisualStudio.Workload.Azure --productKey
[[key]] --quiet\" -NoNewWindow -Wait"
]
},
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/0476cf3e-b89b-4025-b560-9da7a4802e2a%40googlegroups.com.