Commit Graph

8912 Commits

Author SHA1 Message Date
Matthew Hooker a831d522be
change run signatures
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.

`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker a0c625ea44
Revert "working with opt-in"
This reverts commit 4068ffdaf541354e75507add7ca0b193993fcd52.
2018-01-24 17:09:16 -08:00
Matthew Hooker e98f201602
working with opt-in 2018-01-24 17:09:16 -08:00
Matthew Hooker 62e3d1362f
pass context through step.run again 2018-01-24 17:09:16 -08:00
Matthew Hooker 030b5fd4f0
WIP add context to state bag 2018-01-24 17:09:16 -08:00
Matthew Hooker 07a5af66f8
remove ctx arg from step.run 2018-01-24 17:09:15 -08:00
Matthew Hooker 366dc3da0a
move multistep imports to helper.
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker 89d43256bb
pass context into step.run 2018-01-24 17:09:15 -08:00
Matthew Hooker 807e88245b
trying to add context to state bag 2018-01-24 17:09:15 -08:00
Matthew Hooker 4c5a7e08b5
remove multistep vendor dep 2018-01-24 17:09:15 -08:00
Matthew Hooker ccbd8b8abf
update plugin documentation 2018-01-24 16:59:32 -08:00
Matthew Hooker 247119e1c3
make examples copy/pastable 2018-01-23 14:34:40 -08:00
Matthew Hooker 61c17c1d2a
Merge pull request #5800 from jessestuart/jesse/cleanup_contributing_docs
[docs] Fix typos + cleanup CONTRIBUTING.md docs.
2018-01-23 14:34:12 -08:00
Matthew Hooker 83bfeb200d
Merge pull request #5799 from jessestuart/jesse/remove_redundant_vagrantfile_block
[vagrant] Remove redundant configuration block in Vagrantfile.
2018-01-23 13:12:53 -08:00
Matthew Hooker 4bccbbba1f
Merge pull request #5790 from GennadySpb/trusted_certs_dir
Support 'trusted_certs_dir' chef-client configuration option
2018-01-23 13:11:27 -08:00
James Nugent 5967732442
Merge pull request #5795 from stack72/bump-triton-go-deps
builder/triton: bump triton-go dependencies
2018-01-23 14:40:03 +00:00
Matthew Hooker ebe995c0ff
run goimports 2018-01-22 17:21:10 -08:00
Matthew Hooker 5ef0c2280f
Merge pull request #5802 from arizvisa/GH-5789
Some chances to log errors were missed inside step_create_floppy.go for floppy_files
2018-01-19 15:49:03 -08:00
Ali Rizvi-Santiago 0e0b467da7 Forgot to check some errors during the adding of files to the floppy disk. This gives users some better information in case packer is unable to add a file...like if there's not enough disk space available. 2018-01-19 13:34:01 -06:00
Jesse Stuart a83a22200a
[docs] More typo fixes + cleanup. 2018-01-18 04:58:04 -05:00
Jesse Stuart 5db947d9e8
[vagrant] Remove redundant configuration block. 2018-01-18 04:34:14 -05:00
Jesse Stuart 93e565ca3c
[docs] Fix typo in CONTRIBUTING.md 2018-01-18 04:22:23 -05:00
stack72 20f9ef3445 builder/triton: bump triton-go dependencies
This introduces a new triton-go errors package so we can error handle our code in a better way
2018-01-17 16:55:00 +02:00
Matthew Hooker e222d60b5a
update changelog 2018-01-12 15:11:50 -08:00
Matthew Hooker cea2ab8c6d
move kms/encrypted validation to block devices 2018-01-12 15:10:51 -08:00
Gennady Lipenkov 53aaf84100 Support 'trusted_certs_dir' chef-client configuration option 2018-01-13 01:53:49 +03:00
Matthew Hooker 0023aa11cf
add kms_key_id to block device docs 2018-01-12 14:48:18 -08:00
Matthew Hooker e968f9d6cc
spelling/style fixes 2018-01-12 14:26:56 -08:00
Matthew Hooker cfd24eddbf
Merge pull request #5774 from jwieringa/f-kms-key-id
Added KmsKeyID to Amazon Builder DeviceBlock
2018-01-12 14:23:19 -08:00
Jason Wieringa f6772f06be builder/amazon: Raise error when ebsvolume kms_key_id is without encrypted = true 2018-01-11 20:27:38 -08:00
Jason Wieringa 2ac59b3c27 builder/amazon: Added KmsKeyID to BlockDevice
+ Adds kms_key_id to list of options
+ Tests that configuraiton is set along with encrypted
+ Updates documentation on ebsvolume builder
2018-01-11 20:27:38 -08:00
Jason Wieringa 78ff4d1eed Updated github.com/aws/aws-sdk-go/service/ec2
Upgrades to v1.12.57 for the field KmsKeyID on EbsBlockDevice
introduced in v1.12.35 on November 2017.
2018-01-11 20:27:38 -08:00
Matthew Hooker 6f2669c044
Revert "add note about vix api libraries"
This reverts commit c5ec92c88b.
2018-01-11 16:48:39 -08:00
Matthew Hooker c5ec92c88b
add note about vix api libraries 2018-01-11 15:44:49 -08:00
Matthew Hooker 6d6216419c
update changelog 2018-01-11 12:14:34 -08:00
Matthew Hooker 2ce3ca1538
Merge pull request #5773 from hashicorp/fix5705
Use SDK's InstanceReady waiter
2018-01-11 12:12:03 -08:00
SwampDragons fb730cf521
Merge pull request #5761 from hashicorp/fix_5713
fix nasty edge case where we can't find guest additions on windows if they are on a different drive
2018-01-11 11:48:26 -08:00
Megan Marsh bdd186fa2b add tests for fileexistslocally helper function 2018-01-10 16:44:27 -08:00
Megan Marsh 3ace5bb91b simplify FileExistsLocally 2018-01-10 16:11:17 -08:00
Matthew Hooker f5ea1e8312
Use WaitUntilInstanceReady waiter 2018-01-10 15:57:31 -08:00
Megan Marsh 55ddbf4765 sloppy copypasta 2018-01-10 10:08:23 -08:00
Megan Marsh 898dadd53c re-add this block. I still don't think we need it but I don't want to risk breaking things with this bugfix. 2018-01-10 10:03:36 -08:00
SwampDragons 4b8476b3f4
Merge pull request #5781 from diegogoding/fix5779
fixes issue 5779
2018-01-10 09:59:37 -08:00
Diego Goding 38b1cdd8c4 fixed issue 5779 2018-01-10 08:56:59 -06:00
Megan Marsh a04a921c2d add UNC path to test cases, so I can try to enable it in future 2018-01-09 17:14:32 -08:00
Megan Marsh 154973241f add a bunch of windows filepath tests 2018-01-09 16:57:52 -08:00
Megan Marsh 40f0cc6dfe I don't think this is needed anymore 2018-01-09 15:53:54 -08:00
Megan Marsh 2838a2371d disambiguate url variable from url library 2018-01-09 15:47:18 -08:00
Megan Marsh 216c44b153 fix FileExistsLocally 2018-01-09 15:47:07 -08:00
Matthew Hooker 60a136b20a
Merge pull request #5776 from hashicorp/hashicorp-middleman-0.3.29
Update hashicorp-middleman to 0.3.29
2018-01-09 13:16:01 -08:00