-
Notifications
You must be signed in to change notification settings - Fork 100
Provide support for winrm connection #121
Comments
Hi @ElAntagonista, definitely. I have been thinking about this recently. My biggest problem with this is, I have no idea how to test it without having to launch a Windows VM. There isn't also an easy way to integrate such tests using a third-party CI. I might be wrong though. |
@radekg You can use appveyor to run tests on Windows VM ( https://appveyor.com/ ) I used it for my personal projects with great success. |
@radekg - Is there any update to support for winrm connection. I have tried to downloaded latest version of 2.3.0 and its showing error like it only support SSH connections currently. If any latest versions available to support WINRM connection please let me know. Regards, |
You don't need appveyor nor azure-pipelines anymore to run your tests on Windows. The Github native CI ("actions") provide Windows, Linux and MacOS runners: https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-software Here is a short working example of running a test on Github Windows runner: https://medium.com/rkttu/write-your-github-actions-workflow-for-build-windows-application-94e5a989f477
A more complex example that installs golang toolchain on both Linux and Windows, builds executable and runs tests: https://github.com/rclone/rclone/blob/master/.github/workflows/build.yml#L135 How to configure WinRM:
Just run terraform under test right on the same runner and connect via WinRM to localhost |
Although it might be a hustle, it would be great if this provisioner could provide support for provisioning windows machines with Ansible.
The text was updated successfully, but these errors were encountered: