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
a81abd297b
Merge remote-tracking branch 'origin/master' into context_provisioner
2019-04-08 20:09:01 +02:00
Calle Pettersson
9f8fc37fde
Implement Proxmox builder
2019-04-04 15:20:46 -07:00
Megan Marsh
217a93fc30
fix build_test.go on windows. This code needs to not be run in parallel, or else there can be race conditions with the post-processors all trying to access the same file at once. Additionally, I changed the test template itself so that it is valid code on either bash or cmd. Finally, I found and fixed a small bug in naming the file extensions in shell local inline scripts.
2019-04-04 14:57:56 -07:00
Adrien Delorme
a4bf94dd3c
change Builder to be passed a context for cancellation
...
we have to to give it to our hook
2019-04-03 15:55:55 +02:00
Adrien Delorme
045f2f41bd
display received signal in debug mode
2019-03-22 14:25:06 +01:00
Adrien Delorme
9f82b75e57
Use the hashicorp/go-getter to download files
...
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Andrew Widdersheim
a5b753820c
Fix build commands -except help message
...
The `-except` option needed some updates that were missed in 270f851e
.
2019-03-05 10:54:35 -05:00
Megan Marsh
b8510f35fc
Merge pull request #7330 from hashicorp/except_post_processor_tests
...
name a post-processor to it's type when it is not named
2019-02-26 09:26:17 -08:00
Miłosz Smółka
94a7a07c87
Merge branch 'master' into hyperone
2019-02-24 15:16:21 +01:00
Adrien Delorme
7e2d86731e
tests: add a post-processor that creates an unnamed.txt file
2019-02-20 11:03:17 +01:00
Adrien Delorme
de336ef15e
TestBuildOnlyFileMultipleFlags: check that tomato.txt is not created
2019-02-19 16:40:42 +01:00
Adrien Delorme
b04b8b3857
test building with `-except=""`
2019-02-19 15:25:41 +01:00
Megan Marsh
75f574bd4b
Merge pull request #7221 from hashicorp/vagrant_builder
...
Vagrant builder
2019-02-15 10:05:44 -08:00
Megan Marsh
be21850e32
Merge pull request #7060 from andrewsomething/do-post-processor
...
Add digitalocean-import post-processor.
2019-02-14 11:58:00 -08:00
xinau
c207451f7e
Merge branch 'master' of https://github.com/hashicorp/packer into packer-provisioner-inspec
2019-02-12 05:32:05 +00:00
Miłosz Smółka
228829139b
Merge branch 'master' into hyperone
2019-02-07 14:12:13 +01:00
Megan Marsh
ad21367b21
vagrant builder
2019-02-04 14:08:43 -08:00
Adrien Delorme
8621949e01
make generate
2019-02-04 15:16:38 +01:00
Adrien Delorme
dd3e2c255c
respect a 'only' defined in a post-processor
2019-02-01 15:50:06 +01:00
Adrien Delorme
074a74ec38
make sure 'only' completely ignores post-processor
...
before this commit, if one would put a 'only' inside the post-processor definition, the post process could be skipped
2019-02-01 15:21:41 +01:00
Miłosz Smółka
be30415395
Add HyperOne builder
2019-01-23 14:04:05 +01:00
xinau
f5b13e3cb5
added inspec.io provisioner
2019-01-20 15:43:47 +00:00
Adrien Delorme
58245f2557
break a chain of post-processors when one is skipped & make `-only`
...
"blind" to post-processors
* to avoid trouble
* other arrays of post processors might still be there !
* add docs
* update tests
2019-01-11 14:08:30 +01:00
Adrien Delorme
61ade0e127
allow to use --only with post-processors
2019-01-10 15:44:34 +01:00
Adrien Delorme
4bf3cd44fc
allow to skip a post processor
2019-01-10 15:44:34 +01:00
Adrien Delorme
905db043c4
command.TestBuildOnlyFileCommaFlags: create some files using post processors
2019-01-10 15:44:02 +01:00
Adrien Delorme
7655d2efb2
Add tencent cloud builder ( #7135 & #6839 )
2018-12-20 17:09:44 +01:00
Megan Marsh
98e933ca54
make packer inspect not print sensitive variables.
2018-12-07 12:02:20 -08:00
Andrew Starr-Bochicchio
c0c5c6afac
Add DigitalOcean post-processor.
2018-11-29 21:00:57 -05:00
Megan Marsh
ba25e68fe0
add a new breakpoint provisioner
2018-11-29 14:32:52 -08:00
Megan Marsh
c5b6eff691
Merge pull request #6871 from LKaemmerling/master
...
Add hcloud builder
2018-10-18 11:13:16 -07:00
Lukas Kämmerling
270110767c
Add hcloud Builder
2018-10-17 12:15:47 +02:00
Josh Soref
66738ccaf4
Try to make help more consistent
...
Also try to synchronize the completion script
2018-10-10 21:34:35 -04:00
Adrien Delorme
626a3cc2a4
have -timestamp-ui match what's in doc
...
this was just an omission
also `=true` is not a necessary precision in this case
#6784
2018-10-03 14:40:13 +02:00
Ashley Lowde
2884f6fab6
improve formatting and documentation for PR#6784
2018-10-02 20:00:45 +09:30
Ashley Lowde
12496e3702
add optional timestamps to build log
2018-09-29 22:39:24 +09:30
Matthew Hooker
8a7d43dd44
bug fix and add test
2018-09-06 12:19:31 -07:00
Megan Marsh
cb35829f80
Merge pull request #6411 from jmartin-r7/esxi_compact
...
add support for disk compaction to esx5 builder
2018-09-04 12:44:32 -07:00
Oleg Butuzov
079b317b62
Misaligned help entries
...
Descriptions for `build` subcommand aligned.
hashicorp/packer#6652
2018-09-01 10:32:23 +03:00
Jeffrey Martin
e8f04c34a3
add vmware-compaction fixer help
2018-08-30 16:44:00 -05:00
Megan Marsh
c5b346b07b
Merge pull request #6393 from DanHam/fix-hyperv-export
...
Various improvements to Hyper-V ISO and VMCX builders
2018-08-24 15:52:49 -07:00
Matthew Hooker
ddf23a2c46
Complete Atlas deprecation.
...
Removes the push command and the Atlas post-processor. Please see our
guide on building immutable infrastructure with Packer on CI/CD for
ideas on implementing these features yourself.
https://www.packer.io/guides/packer-on-cicd/
2018-08-02 20:23:28 -07:00
Matthew Hooker
9bb0681586
Merge pull request #6423 from hashicorp/fix5513
...
cmd/validate: Warn users if configs need fixing
2018-07-23 13:52:28 -07:00
DanHam
c8f54d5291
Fixer and tests to convert 'clone_from_vmxc_path' -> 'clone_from_vmcx_path'
2018-07-20 02:12:48 +01:00
DanHam
3c5d7aec74
Ensure new fixer appears in 'packer fix' usage message
2018-07-20 02:12:47 +01:00
DanHam
1347f07618
Update 'packer fix' command usage output to include all fixers
2018-07-11 12:38:50 +01:00
Matthew Hooker
dde6805ee8
ignore empty top-level config keys when vetting fix
2018-07-02 13:57:11 -07:00
Sean Malloy
3622a669dc
Add new post processor googlecompute-import
2018-06-26 21:39:55 -05:00