Commit Graph

117 Commits (13ea97a1dfebf0980d45bbdc1a2148ae341b9840)

Author SHA1 Message Date
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
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Megan Marsh 12fc1fa751 default_keep_input_artifact
7 years ago
Megan Marsh bf0d7b3620 make it work and add tests
7 years ago
Brendan Devenney 328cbf4e42
Merge branch 'master' into feature/7322
7 years ago
Brendan Devenney 4d2a5fb9a2
Implement template marshalling logic
7 years ago
Brendan Devenney afba444373
Refactor rawTemplate to better align with real raw template structure
7 years ago
Brendan Devenney 610eecfc99
Track sensitive variable keys to support JSON template writing
7 years ago
Brendan Devenney d8793e3f85
Store comments in the Template structure
7 years ago
Adrien Delorme 944c00900e parse_test.go: still display file name in case of error
7 years ago
Adrien Delorme c12e9eea3a template/parse_test.go: name the post-processors to their type as it's now the default
7 years ago
Adrien Delorme b6b3cc901c template/parse_test.go: use diff for easier eye debug
7 years ago
Adrien Delorme 5eccbc702d name a post-processor to it's type if it is not named
7 years ago
Adrien Delorme 4bf3cd44fc allow to skip a post processor
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Wheeler Law 4582a55680 Formatting
7 years ago