Commit Graph

132 Commits (b35ec44d06454b61ff2ebdb9704d60fc36021dfd)

Author SHA1 Message Date
Juan Manuel Mesa 75efe3fcd1
Clean linting issues for packages template and interpolate (#9120)
6 years ago
Juan Mesa e6dbbe454e Fix linting issues
6 years ago
Juan Mesa 0fca4a8ba8 Add template function aws_secretsmanager
6 years ago
Sylvia Moss 553b1fb9f8
Add RetriedProvisioner to allow retry provisioners (#9061)
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Jeff Escalante 9165be87da
packer.io prefix removal, html extension remove for in-code errors
6 years ago
Megan Marsh 0cfcbd66ca
execute_command in powershell wasn't interpolating build vars properly (#8771)
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Megan Marsh 391cea13ed
Merge pull request #8725 from hashicorp/fix_8655
6 years ago
Sylvia Moss 23fa3107a3
Render variables one time on prepare method (#8727)
6 years ago
Moss dc81720dc9 Fix format
6 years ago
Moss d654898ebf Add tests for check of json duplicate fields
6 years ago
Moss a6d90babbf Add check for json duplicate fields
6 years ago
Lars Lehtonen c6e6220fef
template: replace deprecated os.SEEK_SET with io.SeekStart
6 years ago
Sylvia Moss 328eb8ee96
Interpolate boot_command when defined by user variable (#8640)
6 years ago
Megan Marsh 8490bbc45c add tests for info sharing
6 years ago
Megan Marsh cd7abf1f9e clean up a few final issues with info sharing
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 6bc5a95c3a tweak docs; change to
6 years ago
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables.
6 years ago
Megan Marsh d47f151bf9 punctuation
6 years ago
Megan Marsh 82367a88f8 reorganize placeholder data call to live with provisioner implementation; force users to use the generated function, therefore forcing validation, for all variables except winrmpassword, by doing a simple string check against the placeholder data.
6 years ago
Megan Marsh 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Megan Marsh 0ca7c9f397 fix tests
6 years ago
Megan Marsh 5d266b20d0 generated func now validates based on data provided in context, which needs to include the future values if it is to be interpolated properly.
6 years ago
Megan Marsh 528b853178 stub out generated func for validation
6 years ago
Megan Marsh 14baa769ab improve error message
6 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
6 years ago
psinghal20 6492995a20
feat: add strftime function in templates
6 years ago
Megan Marsh 4c29f88a0a reuse code
7 years ago
Megan Marsh a2824a942d remove extraneous import
7 years ago
Megan Marsh c57e0a9837 remove logline
7 years ago
Megan Marsh 59efa0faee rename option to error-cleanup-privisoner, which I think is clearer
7 years ago
Megan Marsh 0683bc409b add test for error-cleanup provisioner, and fix tests by fixing null builder to use an actual none communicator instead of skipping communicator generation altogether
7 years ago
Megan Marsh 5bd8fee708 Creates a final "cleanup" provisioner to run if an error occurs during a provisioning step, allowing users to perform any custom cleanup tasks that must happen on the VM before the VM is shut down and destroyed.
7 years ago
Adrien Delorme 0f14077664 Merge remote-tracking branch 'origin/master' into switch_sed_because_license
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme df0b06a87a make sed template call deprecated
7 years ago
Adrien Delorme adad25b50b fix switch statement
7 years ago
Adrien Delorme feb3da4f56 replace sed usage with replace and replace_all funcs
7 years ago
Adrien Delorme a279d2e071 template funcs: got force template funcs to be 'FuncGenerator'
7 years ago
Adrien Delorme 3b8f3c5a8b remove any reference to Push
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh e54b1cedd9 text/template turns out to swallow custom error types.
7 years ago
Megan Marsh 2bbc3d50d7 better error handling when using interpolate funcs; don't swallow func errors
7 years ago
Adrien Delorme c11ef90cb6 use interpolate.NewContext() instead of testConfigTemplate(t)
7 years ago
Adrien Delorme d8d5631dc2 allow to set provisioner timeout from buildfile
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Megan Marsh 056fcb7cea fix tests and add a few new ones
7 years ago