packer-cn/provisioner/ansible
Billie Cleek f5ca0de225 provisioner/ansible: assume scp target is file
Assume the scp target is a file instead of a directory. Assuming the scp
target is a file instead of a directory allows uploading files to a node
being provisioned with the ssh communciator using sftp and with the
winrm communicator. It is fully compatible with ansible; ansible
communicators only allow for files (never directories) to be uploaded
(when the copy module is used to upload a directory, ansible walks the
directory and uploads files one at a time).

Update documentation to explain how to provision a Windows image.

Extend tests that use ssh to communicate with the node to include single
files, recursive copies, and content-only recursive copies.

Add test to verify support for the winrm communicator.

Remove the err argument from adapter.scpExec, because it was unused.

Fixes #3911
2016-11-26 14:40:39 -08:00
..
test-fixtures Adding a functional test with an Ansible message very long 2016-07-07 01:12:57 +01:00
adapter.go provisioner/ansible: assume scp target is file 2016-11-26 14:40:39 -08:00
adapter_test.go Update ansible test to use the new Downloader interface 2016-02-12 14:53:23 -08:00
provisioner.go provisioner/ansible: Move info messages to log 2016-11-05 14:25:45 +01:00
provisioner_test.go actually check for errors in functional tests 2016-07-07 20:01:23 +01:00
scp.go provisioner/ansible: assume scp target is file 2016-11-26 14:40:39 -08:00