You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running a power-shell script with remote-exec provisioner, which has few set of commands to execute initially and restart the computer and execute another set of commands. But during terraform apply it fails with executing only the initial commands and restarting the computer and interrupted finally.
Is there a way we can achieve this from terraform end?
will it work if we split this into two provisioners(till reboot first provisioner & post reboot second provisioner will handle the rest of the script).
For suppressing the "connection reset" error during the reboot(first provisioner), may be we can use 'allow_missing_exit_status = true' parameter to ignore the error and continue with next provisioner.
New provisioner connection will try for few minutes before getting timeout(hope windows will boot before provisioner timeout)
We use GitHub issues for tracking bugs and enhancements rather than for questions. While we can sometimes help with certain simple problems here, it's better to use the community forum where there are more people ready to help. The GitHub issues here are monitored only by our few core maintainers.
Since this issue doesn't represent a specific bug or feature request, I'm going to close it. Please do feel free to ask your question in the community forum. Thanks!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Sep 12, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello there!,
We are running a power-shell script with
remote-exec
provisioner, which has few set of commands to execute initially and restart the computer and execute another set of commands. But duringterraform apply
it fails with executing only the initial commands and restarting the computer and interrupted finally.Is there a way we can achieve this from terraform end?
###Terraform Configuration
###Sample Script
###Output log
###References
-#17844
The text was updated successfully, but these errors were encountered: