After some looking into this issue, I found that although the file upload
provisioner does not support downloading with WinRM, WinRM itself does
indeed support it. I guess my best option would be to write my own
script to use winrm and call it via local shell provisioner. Is this the
best way to do this?
Can anyone well me how to send my script the value of winrm_host
and winrm_port? Right now I allow packer to autoconfigure these values
and if there is a {{.Variable}} I can use, I can't figure out what it is.
Thanks
On Tuesday, September 6, 2016 at 9:51:00 AM UTC-4, Jon Hittner wrote:
>
> Hi-
> We have a need to copy some logs created during the provisioning off
> the VMs after they are created. We solved the problem with linux using
> the file provisioner, but when we attempt to dod the transfer against
> windows like so:
>
> {
>
> "type": "file",
>
> "direction": "download",
>
> "source": "C:/install-report.yml",
>
> "only": ["virtualbox-iso"],
>
> "destination": "/corp/tc/reports/{{ user `vm_name` }}-v{{ user
> `version` }}.yml"
>
> }
>
>
> we get:
>
> ==> virtualbox-iso: Downloading C:/install-report.yml
> => /corp/tc/reports/eval_windows_2012_r2-v1472874940.yml
>
> ==> virtualbox-iso: Download failed: WinRM doesn't support download.
>
>
> Is this a limitation of WinRM? Is there any other ways to transfer files
> off the windows machines at the end of the provisioning stage?
>
>
> -Jon
>
--
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/38382407-bb17-44db-a447-4b8a887c1493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.