Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PowerShell Remoting in remote-exec and file provisioners #17859

Open
masert opened this issue Apr 13, 2018 · 13 comments
Open

Support PowerShell Remoting in remote-exec and file provisioners #17859

masert opened this issue Apr 13, 2018 · 13 comments

Comments

@masert
Copy link

masert commented Apr 13, 2018

Hi all,

facing a lot of probleme with provisionning on windows instances by WinRM (vsphere provider and windows instances connected to a domain)

Is it possible to add powershell connection type to terraform connection

Powershell is opensource since August 2016 and is available on major linux distributions

It will solve Kerberberos connection problem with windows instances (part of a domain)

Thanks a lot

@apparentlymart
Copy link
Contributor

Hi @masert! Thanks for this feature request.

Just to make sure I understand properly, are you talking about PowerShell Remoting? It looks like that works in terms of WS-Management, like WinRM, but expects PowerShell commands instead.

@masert
Copy link
Author

masert commented Apr 17, 2018 via email

@justdan96
Copy link

You may want to see here:
#17829 (comment)

@masert
Copy link
Author

masert commented Apr 18, 2018 via email

@justdan96
Copy link

Actually you can. Terraform uses the Azure/go-ntlmssp library for NTLM authentication. I put together a pull request for that repo to add domain authentication support and it is now in the master branch. It is currently not supported in Terraform as the Azure/go-ntlmssp dependency needs to be updated to the latest version.

@justdan96
Copy link

Here is the relevant pull request for Terraform to add the functionality: #17887

@masert
Copy link
Author

masert commented Apr 23, 2018 via email

@apparentlymart apparentlymart changed the title new connection type suggested Support PowerShell Remoting in remote-exec and file provisioners Apr 23, 2018
@frezbo
Copy link
Contributor

frezbo commented Aug 11, 2018

Any progress here, support for NTLM has be merged as per #17748

@lmayorga1980
Copy link

👍

@surajchandegave
Copy link

When can we expect this feature to be available?

@mildwonkey
Copy link
Contributor

If this is a feature you are interested in, please react to the original issue comment with 👍, which we can and do report on during prioritization.

@masert2
Copy link

masert2 commented Apr 11, 2019

👍
actually we use local provisionner to launch local powershell remote command on windows TF instance.
Not the best way, and we are obliged to split between Linux and Windows env (to use the best usable tool on each side).

@apparentlymart
Copy link
Contributor

Commenting with a +1 or 👍 doesn't help because we can't query by it, so it just makes noise for those following the issue. If you react to the original comment on this issue (not this comment) then we can use it as an input for prioritization, and it won't create such notification noise. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants