Skip to content

Conversation

@bhcleek
Copy link
Contributor

@bhcleek bhcleek commented Nov 26, 2016

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 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

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 hashicorp#3911
@mwhooker
Copy link
Contributor

mwhooker commented Dec 8, 2016

@rickard-von-essen anything to add before I merge this?

@rickard-von-essen
Copy link
Contributor

rickard-von-essen commented Dec 9, 2016 via email

@mwhooker mwhooker merged commit c510988 into hashicorp:master Dec 9, 2016
@bhcleek bhcleek deleted the ansible-winrm branch December 9, 2016 14:36
@ghost ghost locked and limited conversation to collaborators Apr 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: allow Ansible provisioner to specify usage of WinRM instead of SSH

3 participants