So when going down the provisioning steps, it's pretty common to use the
variable {{.WinRMPassword}} when provisioning Windows servers, and you can
also call variables such as {{.Path}} and the like ...
... but is there a place somewhere that all these variables are
documented? The root of this question comes down to templates that build
in multiple cloud providers. These providers will actually use different
usernames and passwords for the connection (AWS defaults to "Administrator"
whereas Azure uses "Packer", each of course with it's own username). So if
I need to run a custom process that uses information like username/password
... it's good to know I can reliably get it (especially as it's temporary
info). Yet while {{.WinRMPassword}} works ... {{.WinRMUserName}} doesn't.
So I'm left to guessing these values.
Does anyone know where I can find a definitive list of vars the various
builders make available? If so, I can tell what my capabilities actually
are. I'm not very good at reading Go unfortunately, so asking me to crawl
the source code doesn't help unless you can tell me _where_ that is. (Yes
I hate that language with a passion, but that's another thread).
Regards,
Justin DynamicD
--
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/607f8878-b0b5-4dcf-a45d-968832388a4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.