Commit Graph

12051 Commits

Author SHA1 Message Date
Brett Wandel 60cb046657 vendored sync/semaphore 2019-04-13 22:43:09 +10:00
Brett Wandel 92e75f838a added the ability to limit number of builds running in parallel 2019-04-13 22:31:54 +10:00
Megan Marsh 78cf1405ab
Merge pull request #7480 from BobSilent/fix-hyperv-multiple-hostadapter-same-switch
Fixes "Host IP for the HyperV machine: False" if more than one VMNetworkAdapter is found
2019-04-12 14:06:46 -07:00
Megan Marsh 0a8e19b01b
Merge pull request #7491 from hashicorp/pause_before_connecting_docs
Pause before connecting docs
2019-04-12 11:08:16 -07:00
Megan Marsh 5e52e6e2c4
Merge pull request #7497 from hashicorp/fix_ovf_inplace
Use ovf files in place instead of symlinking
2019-04-12 11:07:48 -07:00
Adrien Delorme 9ac8d8aed8 step download: ovf files usually point to a file in the same directory, using them in place is the only way 2019-04-12 16:51:57 +02:00
Adrien Delorme 349a15356d
Merge pull request #7490 from hashicorp/unrevert_proxmox
Unrevert proxmox merge revert
2019-04-12 13:34:14 +02:00
Adrien Delorme bba0f9f820 also make sure packer builds with go modules 2019-04-12 13:20:58 +02:00
Adrien Delorme a81d5de034 up modules and vendor dir 2019-04-12 12:27:32 +02:00
Adrien Delorme d2f036ec44 Revert "Revert "Merge pull request #7391 from carlpett/proxmox-builder""
This reverts commit 032527ecfe.
2019-04-12 12:26:34 +02:00
Megan Marsh 8964b8f887
Merge pull request #7492 from nfagerlund/apr19_middleman_update
website: Update middleman-hashicorp to 0.3.39, update Gemfile.lock
2019-04-11 16:40:48 -07:00
Nick Fagerlund c277a0396b website: Update middleman-hashicorp to 0.3.39, update Gemfile.lock
This commit fixes some dependencies with known issues. It DOES increase the
first build time by quite a bit because a few of the updated dependencies now
use native extensions, but once it's cached you should be good.
2019-04-11 16:22:21 -07:00
Megan Marsh 26629efbf0 Megan and Adrien don't know how to web well 2019-04-11 15:40:53 -07:00
Megan Marsh 32b68de4db clarify pause before connecting code 2019-04-11 15:26:16 -07:00
Megan Marsh 2b46b395b4 update version 2019-04-11 15:25:46 -07:00
Megan Marsh b623773225 update version 2019-04-11 15:25:36 -07:00
Megan Marsh 54d2b32d8c
Cut version 1.4.0 2019-04-11 11:29:21 -07:00
Megan Marsh b8555d4681 cut release 1.4.0 2019-04-11 11:19:03 -07:00
Megan Marsh e9c3dcdd6d update changelog 2019-04-11 11:17:34 -07:00
Megan Marsh 09d2418552
Merge pull request #7270 from hashicorp/go_mod_vendor
make go mod manage deps
2019-04-11 09:42:50 -07:00
Adrien Delorme 63f5bbbc73 use our own copy of iochan.LineReader 2019-04-11 14:25:24 +02:00
Adrien Delorme 032527ecfe Revert "Merge pull request #7391 from carlpett/proxmox-builder"
This reverts commit b7d62b2ae0, reversing
changes made to c36eaf16f7.
2019-04-11 14:19:25 +02:00
Adrien Delorme 267e2253a2 check if running `go mod vendor` has an effect on vendor directory and if so fail 2019-04-11 14:19:25 +02:00
Adrien Delorme aa6d5e1d74 Update CONTRIBUTING.md
to explain go mod usages
2019-04-11 14:19:25 +02:00
Adrien Delorme 5a896367ef make sure CI builds with GO111MODULE=off 2019-04-11 14:19:25 +02:00
Adrien Delorme aee73d745d update code after go mod update 2019-04-11 14:19:24 +02:00
Adrien Delorme 2f97dc2933 go mod vendor && go mod tidy 2019-04-11 14:19:24 +02:00
Adrien Delorme dcd21d37da
Merge pull request #7489 from hashicorp/context_provisioner
Context provisioner
2019-04-11 11:55:29 +02:00
Megan Marsh 212645b91c
Merge pull request #7466 from hashicorp/provisioner_timeout
Provisioner timeout
2019-04-10 13:21:50 -07:00
Megan Marsh 7742ae1981
Merge pull request #7440 from hashicorp/context_provisioner
Context parameter for cancellation in Builder, Provisioner, Hook & PostProcessor
2019-04-10 10:50:59 -07:00
Adrien Delorme e7d30ee783
Merge pull request #7485 from kaneshin/patch-1
Fix minor typo for GCP docs
2019-04-10 09:09:01 +02:00
Shintaro Kaneko e1164a6a56
Fix minor typo for GCP docs 2019-04-10 10:47:50 +09:00
Megan Marsh c822d58c74
Merge pull request #7479 from shanamatthews/patch-1
update account link
2019-04-09 10:27:15 -07:00
Adrien Delorme 8565a30c69 TimeoutProvisioner: also display an error log when the context times out 2019-04-09 17:46:38 +02:00
Adrien Delorme 6ff392d713 Update windows_container_communicator.go
after merge
2019-04-09 17:46:38 +02:00
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware 2019-04-09 17:46:38 +02:00
Adrien Delorme e5cc032938
Merge pull request #7482 from schrej/patch-1
Docs: fix typo in openstack builder
2019-04-09 17:05:50 +02:00
Jakob 65afb675d1
Fix typo in openstack builder docs 2019-04-09 16:51:39 +02:00
BobSilent 5b289f67fe Update hyperv.go
maybe also a fix for issue #5023
at least I got same error like there, incl. VM response
==> hyperv-iso: Host IP for the HyperV machine: False

although #4947 is marked as duplicate but shows different error output
==> hyperv-iso: Error getting host adapter ip address: PowerShell error: Get-VMNetworkAdapter : No network adapter is found with the given input.
2019-04-09 07:36:52 +02:00
Shana Matthews 9e5726b98a
update account link 2019-04-08 19:48:58 -07:00
Adrien Delorme aa3cb5be63 document common provisioner parameters 2019-04-08 20:09:22 +02:00
Adrien Delorme 0b4ada9690 make sleep provisioner available to packer 2019-04-08 20:09:22 +02:00
Adrien Delorme d7b1b597a7 test provisionning timeout 2019-04-08 20:09:21 +02:00
Adrien Delorme 06941a86a3 make the file builder run provisioners for testing purposes 2019-04-08 20:09:21 +02:00
Adrien Delorme 2b06d74019 add a sleep provisioner
mainly for testing purposes
2019-04-08 20:09:21 +02:00
Adrien Delorme eadb40da91 Update communicator_test.go
fix tess
2019-04-08 20:09:21 +02:00
Adrien Delorme 2a90ce6178 packer communicator: use iochan.LineReader instead of iochan.LineReader(in)
* as it's the recommended way
2019-04-08 20:09:21 +02:00
Adrien Delorme d8d5631dc2 allow to set provisioner timeout from buildfile 2019-04-08 20:09:21 +02:00
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
Adrien Delorme f7cd2b9334 add a 5 seconds timeout to provisioner hook 2019-04-08 20:09:21 +02:00