Commit Graph

58 Commits (2cdc052d7c2920068d0ebca61e6c55698ec96192)

Author SHA1 Message Date
Simon Jones 45f81893b9 RunWithUI already calls Wait on the command
6 years ago
Simon Jones aaa913a484 RunWithUi sets appropriate default for stderr buffer
6 years ago
Søren Hansen 19e4afa728
provisioner/windows-restart: Get full hostname, instead of just the NetBIOS name. (#9335)
6 years ago
Adrien Delorme 40947c2bf6
HCL2: generate hcl tags with go-cty tags too (#9306)
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Megan Marsh 0ca7c9f397 fix tests
6 years ago
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
6 years ago
Megan Marsh f4c3501af5 pass struct of generated data into provision() call
6 years ago
Megan Marsh ad34a4551b provisioner/windows-restart: revert sleep hack now that we've fixed the underlying bug in #8369 (#8377)
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme 82c4b76639 [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method
7 years ago
Adrien Delorme c7ce4d598e change Provisioner to be passed a context for cancellation
7 years ago
Megan Marsh d5854a9574 add option to test registry for certain keys to make sure windows is done with a reboot cycle
7 years ago
Matt Dainty 0192289d68 Drop exit code 1717
7 years ago
Matt Dainty 5fed453047 Ignore an already-scheduled reboot
7 years ago
Poddo 72391f8f4d
Update provisioner.go
8 years ago
Megan Marsh c51cd751d1 go back to using StartWithUI to prevent weird hangs during windows reboot
8 years ago
Megan Marsh 9fa47f5dad make windows restart provisioner work with ssh communicator
8 years ago
Megan Marsh 974d9974fe add workaround for azure bug.
8 years ago
Megan Marsh 19c997cb0e revert to using UI becuase the remote command syntax breaks things on linux with vmware fusion.
9 years ago
Megan Marsh c3cb7fe9f9 read from stderr so it doesnt lock up
9 years ago
Megan Marsh 9b1ae530c3 have separate stdout and stderr buffers
9 years ago
Megan Marsh 6019e41544 dont read stderr
9 years ago
Megan Marsh 73b6247fd2 remove unnecessary boolean operator
9 years ago
Megan Marsh e56a6dc9a0 add some comments
9 years ago
Megan Marsh a739623d9b don't pipe restarted stuff through the ui
9 years ago
Megan Marsh d71bc34dfc don't need this in a loop
9 years ago
Megan Marsh d81871171c make restart command work correctly even if user has their own check command
9 years ago
Megan Marsh 959db1ac16 add echo test to winrm connection.
9 years ago
Megan Marsh b1001264ed fix windows-restart tests
9 years ago
Megan Marsh b2923b4da6 check stdout to make sure echo command actually goes through before counting computer as fully restarted
9 years ago
Matthew Hooker b1f06bbebb
fix wording
9 years ago
Matthew Hooker 67e29e1eff
disambiguates windows-restart messages.
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker 0149f679de
Print instead of Printf with no dynamic first variable.
9 years ago
Matthew Hooker 230079f73a
spell fixes
9 years ago
Marc Carmier 78ab21b42f Test error messages for restart_command and restart_timeout seems to be erroneous
9 years ago
Rickard von Essen 51a9a51699 Update winrm and winrmcp dependencies
10 years ago
Mark Peek 43cb854b3e Merge pull request #2568 from pecigonzalo/f-winrm-reboot
11 years ago
Mark Peek 1aad5cf6d5 provisioner/windows-restart: remove race in test
11 years ago
Mark Peek d87b68efe8 Syncronize cancellation in windows-restart tests
11 years ago
Gonzalo Peci f01f62dc88 Add specific exit codes listed on https://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx
11 years ago
Gonzalo Peci 8bd3e62853 Because the new functionality makes the ```waitForRestart()``` function run commands it modifies the value of ```comm.StartCmd.Command``` that is being checked, we need to implement the same workaround that is being used for the ```waitForCommunicator()``` function. This should make the test work again and retain functionality.
11 years ago
Gonzalo Peci 08359e409a Revert the shutdown command with new parameters as this will return proper exit codes. This will work in the same way as restart-computer -force when using ```shutdown /r /f /t 0```.
11 years ago
Gonzalo Peci 70083fc869 Add reboot checks before moving out of the reboot.
11 years ago