Commit Graph

12352 Commits

Author SHA1 Message Date
Peter Pribula 02b6e7f3de Changes `qemu_agent` config frm string to bool
Defaults to true
2019-04-30 20:23:34 +02:00
Olaf Seibert 58f8f088e2 Add image filtering on properties.
Initial commit with debugging info.
2019-04-30 16:34:40 +02:00
Adrien Delorme d9e5145de9 Shadow the flock pkg & add a noop filelock so that at least the solaris binary can be built
Without this the following error occurs:

$ GOOS=solaris go build .
# github.com/hashicorp/packer/vendor/github.com/gofrs/flock
vendor/github.com/gofrs/flock/flock_unix.go:28:22: undefined: syscall.LOCK_EX
vendor/github.com/gofrs/flock/flock_unix.go:39:22: undefined: syscall.LOCK_SH
vendor/github.com/gofrs/flock/flock_unix.go:56:12: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:66:12: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:96:12: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:96:42: undefined: syscall.LOCK_UN
vendor/github.com/gofrs/flock/flock_unix.go:118:21: undefined: syscall.LOCK_EX
vendor/github.com/gofrs/flock/flock_unix.go:130:21: undefined: syscall.LOCK_SH
vendor/github.com/gofrs/flock/flock_unix.go:149:9: undefined: syscall.Flock
vendor/github.com/gofrs/flock/flock_unix.go:149:44: undefined: syscall.LOCK_NB
vendor/github.com/gofrs/flock/flock_unix.go:149:44: too many errors
2019-04-30 16:01:23 +02:00
Adrien Delorme 5d9d43c01d add tests for ListenRangeConfig.Listen 2019-04-30 15:42:59 +02:00
Adrien Delorme fd63ec9a6c ListenRangeConfig.Listen: move trying port log after fslock trylock for less logs 2019-04-30 15:35:22 +02:00
Adrien Delorme 79ae62801f ListenRangeConfig: default network ( protocol ) to tcp 2019-04-30 14:55:38 +02:00
Adrien Delorme a2b0babd23
Merge pull request #7587 from hashicorp/circle_make_bin
circle-ci: run `make bin` to make sure all binaries build
2019-04-30 12:23:20 +02:00
Adrien Delorme ae46fcec01 circle-ci: run `make bin` to make sure all of our binaries can build 2019-04-30 12:06:34 +02:00
Adrien Delorme b68aa40a69
Merge pull request #7567 from creack/bump-goselect2
Update vendors for s390x support. Remove Solaris support.
2019-04-30 12:02:31 +02:00
Adrien Delorme 051f39e21d
Merge pull request #7583 from hashicorp/update_custom_plugin_docs
update docs defining Builders and PostProcessors
2019-04-30 11:58:53 +02:00
Megan Marsh e7c4cc622e
Update website/source/docs/extending/custom-post-processors.html.md
Co-Authored-By: azr <azr@users.noreply.github.com>
2019-04-30 11:56:56 +02:00
Megan Marsh 27cf53003f
Update website/source/docs/extending/custom-post-processors.html.md
Co-Authored-By: azr <azr@users.noreply.github.com>
2019-04-30 11:56:39 +02:00
Megan Marsh dd7030453f
Merge pull request #7575 from hashicorp/fix_7534
Step download: always copy local files
2019-04-29 12:35:55 -07:00
Megan Marsh e40739f332
Merge pull request #7579 from hashicorp/fix_7525
fix race condition causing hang
2019-04-29 11:03:06 -07:00
Megan Marsh 2e0f9223c8 remove all the extra debug lines 2019-04-29 10:33:41 -07:00
Adrien Delorme 1be337b383 update docs for definig Builders and PostProcessors 2019-04-29 13:16:46 +02:00
Adrien Delorme ee4f16d3a4
Merge pull request #7582 from h4ckninja/patch-1
Move the communicator pause_before_connecting
2019-04-29 10:25:44 +02:00
Adrien Delorme 65be2be38b step_download: force copy of local files only on windows 2019-04-29 09:39:21 +02:00
h4ckNinja a537888fb0
Move the communicator pause_before_connecting
block to a code block and fix the JSON
2019-04-28 23:20:13 -07:00
chhaj5236 4639f92f63
Merge pull request #7574 from lrxcy/add_support_encryption
support encryption with default service key
2019-04-27 10:35:13 +08:00
Megan Marsh 1287fcfa27 add iochan by mitchell to modules 2019-04-26 16:23:33 -07:00
Megan Marsh b84b665ba3 fix race 2019-04-26 16:05:14 -07:00
Adrien Delorme 62b2316896
Update go.mod 2019-04-26 11:34:20 +02:00
Adrien Delorme 86d26ac6f1
Merge branch 'master' into bump-goselect2 2019-04-26 11:31:29 +02:00
Adrien Delorme 200e26ea85 Step download: always copy local files
instead of symlinking to fix #7534. The longer term fix for this would be to change the go-getter so that it can leave the source file where it is & tell us where it is.

We will do this when the right time comes.
2019-04-26 10:35:18 +02:00
wb-ywq399345 0da7b918ce support encryption with default service key 2019-04-26 15:12:07 +08:00
chhaj5236 6b081cc41c
update alicloud builder to use official SDK (#7477) 2019-04-26 10:37:49 +08:00
Guillaume J. Charmes 36641e66a7 Update build.sh. Remove solaris, add mipsXX and s390x
Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
2019-04-25 16:29:25 -04:00
Guillaume J. Charmes 669970717e Bump golang.org/x
Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
2019-04-25 15:47:01 -04:00
Guillaume J. Charmes 40f6fcdcfd Bump goselect version to include mips/ppc/s390x
Signed-off-by: Guillaume J. Charmes <gcharmes@magicleap.com>
2019-04-25 15:40:09 -04:00
Megan Marsh e6363a1bdf
Merge pull request #7517 from hashicorp/fix_7506
fix tty related panics
2019-04-25 11:04:42 -07:00
Peter Pribula cb7b77cd90 Adds `qemu_agent` optional config parameter 2019-04-25 19:25:00 +02:00
Adrien Delorme 9be80ce65f
Merge pull request #7566 from yuriolive/patch-1
Missing comma in JSON
2019-04-25 18:45:24 +02:00
yuriolive 6ba479d723
Missing comma in JSON
JSON is invalid, is missing a comma
2019-04-25 12:58:46 -03:00
Peter Pribula c261428c4f ProxMox builder ssh communicator uses ssh_host from builder config when present 2019-04-25 11:43:12 +02:00
Adrien Delorme 781aa2ccae
Merge pull request #7563 from amydutta/azure-sdk-update
Azure SDK update
2019-04-25 11:22:09 +02:00
Adrien Delorme 71c00c200f fix panic: send on closed channel
on windows: if the term is resized when ReadString is being called and no one is reading form ws, we get a panic: send on closed channel.
It could make sense to poll getconsolescreenbufferinfo calls instead of this:
something started from the sigwinch() func

on unix: same story, sigwinch was listened upon by default but if the
signals (chan sends) were not handled, this could cause a crash

fix #7434
2019-04-25 10:49:08 +02:00
Adrien Delorme fa7b922e7a main.go: don't set TTY interface from tty.Open() in case open fails
If tty.Open fails the return tty is still nil, but the interface type will be set; meaning in go that `TTY == nil` will always be false.

fix #7506
2019-04-25 10:48:40 +02:00
Amrita Dutta 028a748aea Merge branch 'master' of https://github.com/hashicorp/packer into azure-sdk-update 2019-04-25 02:31:23 +00:00
amydutta bca4ecda9e update azure sdk version 2019-04-25 02:28:30 +00:00
Megan Marsh 9f3bbd249c
Merge pull request #7554 from hashicorp/fix_7516
when retries were exhausted in the retry Run, we were returning nil i…
2019-04-24 11:09:58 -07:00
Adrien Delorme 9f1136db77 retry: encapsulate & return the last seen error in a RetryExhaustedError 2019-04-24 14:19:23 +02:00
Megan Marsh e69d95eb37 when retries were exhausted in the retry Run, we were returning nil instead of an error. 2019-04-23 13:48:30 -07:00
Megan Marsh f7c1b5e940 add 30 minute timeout for destroying a VM 2019-04-23 12:55:59 -07:00
Adrien Delorme b1ffc1c814
Merge pull request #7539 from hashicorp/reverse_winrm_admonishment
warn users to lock down winrm after provisioning
2019-04-23 15:46:35 +02:00
Adrien Delorme 4e49a3307d
Merge pull request #7538 from hashicorp/ssh_explanation_table
add a table explaining what to expect with different ssh options for …
2019-04-23 15:43:25 +02:00
Adrien Delorme ee743f0b7c
Update website/source/partials/builders/_aws-ssh-differentiation-table.html.md 2019-04-23 15:42:59 +02:00
Adrien Delorme 95c8ac8a93
Merge pull request #7537 from hashicorp/vmotion_warning
add vmotion warning to vmware remote builder section, and move the re…
2019-04-23 15:40:04 +02:00
Adrien Delorme 5399e8a67d
Merge pull request #7547 from hashicorp/comment_guide
add guide for uisng jq to strip comments from packer template
2019-04-23 15:26:24 +02:00
Adrien Delorme fcfb044264
Merge pull request #7548 from hashicorp/isotime_documentation
add docs for how to use the format strings for the isotime function
2019-04-23 15:21:00 +02:00