12043 Commits

Author SHA1 Message Date
Megan Marsh
3777f7d34a update changelog 2019-04-05 10:39:46 -07:00
Megan Marsh
3e72e65a6c
Merge pull request #7456 from hashicorp/do_5770
introduce the clean_resource_name to clean image/var names
2019-04-05 09:12:20 -07:00
Megan Marsh
1f7150e2ee
Merge pull request #7463 from hashicorp/default_keep_input_artifact
Default keep input artifact
2019-04-05 08:10:40 -07:00
MisterMiles
5ab8cc6ded
Update shell-local.html.md
The last sentence is misleading because it is assumed that the shell-inline parameter is only executed on the machine which is build by packer.
2019-04-05 16:16:25 +02:00
Adrien Delorme
a08d9dec9b add a Fixer that replaces the "clean_(image|ami)_name" template calls with "clean_resource_name" 2019-04-05 15:30:41 +02:00
Megan Marsh
04b57b3e32 fix tests; clean up ip file after build 2019-04-04 22:33:24 -07:00
Megan Marsh
2b0209b8fd
Merge pull request #7468 from hashicorp/less_travis
building on go master is just wasting our time.
2019-04-04 15:48:33 -07:00
Calle Pettersson
e9d5a1d272 Update to builder interface change 2019-04-04 15:20:46 -07:00
Calle Pettersson
65f38978f8 Add vendor 2019-04-04 15:20:46 -07:00
Calle Pettersson
2f754c38f8 Add validation of interface implementation for both proxmox.Client and mocks 2019-04-04 15:20:46 -07:00
Calle Pettersson
c4ce295f67 Add tests for step_start_vm cleanup 2019-04-04 15:20:46 -07:00
Calle Pettersson
4c1fbfdd61 Shifted special runes are already handled, simplify SendKey 2019-04-04 15:20:46 -07:00
Calle Pettersson
0765bc2283 Add tests for step_type_boot_command, fix found bug (shifted chars were not lower cased) 2019-04-04 15:20:46 -07:00
Calle Pettersson
28ca0f71b5 Add tests for step_convert_to_template 2019-04-04 15:20:46 -07:00
Calle Pettersson
3d5f433b22 Add more finalizetemplate tests, fix found bug 2019-04-04 15:20:46 -07:00
Calle Pettersson
5eb600bf88 Add draft of step test 2019-04-04 15:20:46 -07:00
Calle Pettersson
2e3086be5a Initial tests 2019-04-04 15:20:46 -07:00
Calle Pettersson
1d16b4ec41 Add docs 2019-04-04 15:20:46 -07:00
Calle Pettersson
9f8fc37fde Implement Proxmox builder 2019-04-04 15:20:46 -07:00
Megan Marsh
5b07926b69
Merge pull request #7467 from hashicorp/fix_windows_tests
Fix windows tests
2019-04-04 15:20:28 -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
Megan Marsh
79143ade8f building on go master is just wasting our time. 2019-04-04 14:56:53 -07:00
Megan Marsh
196028a7ed
Merge pull request #7444 from hashicorp/docker_windows
Docker windows
2019-04-04 09:30:43 -07:00
Adrien Delorme
a4085b8fc2
Merge pull request #7452 from hashicorp/fix_7434
fix tty to avoid panic after resizing term near exit time
2019-04-04 15:24:35 +02:00
Adrien Delorme
baa43fe78b
Merge pull request #7462 from hashicorp/fix_log_secret_filter
make sure we filter the ui as well as the logs
2019-04-04 15:15:30 +02:00
Paul Meyer
bab431724d
Update CHANGELOG.md 2019-04-03 16:39:27 -07:00
Paul Meyer
7fc8901d8f
Merge pull request #7464 from paulmey/fix-snapshots
[azure] Fix: Power off before taking snapshot (windows)
2019-04-03 16:38:04 -07:00
Megan Marsh
fd01738df2
Merge pull request #7461 from Liath/patch-1
Ansible 2.7 "use_tty" fix
2019-04-03 15:25:14 -07:00
Megan Marsh
96c94d2fa0 clean up code comments 2019-04-03 14:04:03 -07:00
Megan Marsh
10f47b5158 document clearly what keep_input_artifact does for each post-processor 2019-04-03 13:57:22 -07:00
Megan Marsh
9dafa310f3 remove redundant keep_input_artifact code from googlecompute-export and googlecompute-import pps. The behavior coded here was already enforced by the core postprocessor code in packer/build.go 2019-04-03 12:05:38 -07:00
Megan Marsh
1b77b05ce2 remove redundant keep_input_artifact from compress pp and clarify keep behavior in shell-local pp 2019-04-03 12:03:40 -07:00
Megan Marsh
056fcb7cea fix tests and add a few new ones 2019-04-03 11:32:49 -07:00
Megan Marsh
c1960840e3 fix tests 2019-04-03 11:01:52 -07:00
Megan Marsh
a358b174a4 make sure we filter the ui as well as the logs 2019-04-03 10:43:41 -07:00
Megan Marsh
365b32eb9c goofing 2019-04-03 09:43:39 -07:00
Adrien Delorme
c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
Adrien Delorme
82c4b76639 [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
Adrien Delorme
14048b1e11 Revert "WIP: go towards context cancelled rpc pkg"
This reverts commit e4609b4a6a4ba2ec76a45ad67d50d180f1a914f9.
2019-04-03 15:55:55 +02:00
Adrien Delorme
9e3a179c0d WIP: go towards context cancelled rpc pkg 2019-04-03 15:55:55 +02:00
Adrien Delorme
39a5e4e612 rpc server register funcs: return errors 2019-04-03 15:55:55 +02:00
Adrien Delorme
e65115a7a0 contextualize post-processor 2019-04-03 15:55:55 +02:00
Adrien Delorme
cccbd7f316 contextualize basic runner 2019-04-03 15:55:55 +02: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
829851fc8a change hooks to be passed a context for cancellation
we have to as it is what calls our provisioners
2019-04-03 15:55:54 +02:00
Adrien Delorme
c7ce4d598e change Provisioner to be passed a context for cancellation 2019-04-03 15:55:54 +02:00
Adrien Delorme
dae02c0877 add context to Provisioner.Provision interface signature 2019-04-03 15:55:54 +02:00
Adrien Delorme
9836dad0c9 introduce the clean_resource_name to clean image names and deprecate the old ones 2019-04-03 11:25:51 +02:00
John Jones
d0eb2609a8
Ansible 2,7 "use_tty" fix
Per Issue #6453, Ansible@2.7 targetting Windows was throwing the following error when setup as the docs instruct:
"Requested option use_tty was not defined in configuration"

This is caused by something in Ansible silently discarding the whole `DOCUMENTATION` string configuration when it can't parse it. The changed line in this PR fixes that. :)
2019-04-02 21:17:08 -07:00
Megan Marsh
12fc1fa751 default_keep_input_artifact 2019-04-02 16:51:58 -07:00