Commit Graph

143 Commits (774a168957f14cedc2dd67b9bb2ea329fcd5d294)

Author SHA1 Message Date
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
8 years ago
Wheeler Law 1fdce9dada Tests are passing
8 years ago
Wheeler Law de3bdec567 Working now
8 years ago
Wheeler Law 65c1b039cc Added a sed function. Not quite working yet
8 years ago
Adrien Delorme 379336d9b2 make template/parse_test.go invisible to windows
8 years ago
Megan Marsh 174098ba29 implement vault template function for kv engine; add docs
8 years ago
Megan Marsh dfaf624f4c add template function allowing user to read keys from vault
8 years ago
Olivier Ceyral ee08365b02 Fix error message
8 years ago
Olivier Ceyral a906d1d630 Add consul template function
8 years ago
Megan Marsh 6356078d19 add a few more tests to split function
8 years ago
Megan Marsh 8fbce8c40c
Merge pull request #6357 from ladar/master
8 years ago
Megan Marsh 8a6441a7a5 add tests for SensitiveVars
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Ladar Levison 8fee49ab9f Added a 'split' function to parse template variables.
8 years ago
Krzysztof Wilczynski 7d80e37c14
Add new `packer_version` function.
9 years ago
Ben Root 5beca186d7 Unit test to verify that parsing fails on a certain kind of malformed JSON
9 years ago
Matthew Hooker 3fe1f20770
use json unmarshal instead of json decoder
9 years ago
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker d1b20b3d9c
remove a bunch of dead code.
9 years ago
Matthew Hooker db49f10cad
update changelog
9 years ago
Matthew Hooker 5ea0eb0ec6
print time.Time with %v
10 years ago
Matthew Hooker d920b3fbf4 run gofmt
10 years ago
Jake Champlin aca4aed47c Display better error messages on json.SyntaxError
10 years ago
Mark Peek 71ed8e4a38 Fix #2742: Include template line numbers on error
11 years ago
Mark Peek 5ef142c8bd Fixes #2777: isotime interpolation uses InitTime
11 years ago
Mitchell Hashimoto fd2d44c212 helper/config: copy buildname/buildtype properly
11 years ago
Mitchell Hashimoto 723b91ccf3 Merge pull request #2232 from mitchellh/f-build-name
11 years ago
Mitchell Hashimoto d6f8ec9315 Merge pull request #2230 from mitchellh/f-json-comments
11 years ago
Mitchell Hashimoto 1d94e0f8e3 template: abslute path for template path
11 years ago
Mitchell Hashimoto f1b3c8a7ae template/interpolate: build_name and build_type functions
11 years ago
Mitchell Hashimoto facbb6577d template: allow _ prefix to root level keys for comments [GH-2066]
11 years ago
James G. Kim d7c77895dc Add tests for only and except of post-processors
11 years ago
James G. Kim a5818b158f Fixes 'unknown configuration key' errors for 'only' and 'except'
11 years ago
Mitchell Hashimoto 579264bb5b command/push: interpolate
11 years ago
Mitchell Hashimoto 639e63fd7c packer: test for template path
11 years ago
Mitchell Hashimoto 31d6dcb656 template: template path is the directory
11 years ago
Mitchell Hashimoto 2b9e52e743 template: stores the path
11 years ago
Mitchell Hashimoto 2752e51e09 template/interpolate: add template_path
11 years ago
Mitchell Hashimoto 27e525e508 update CHANGELOG
11 years ago
Mitchell Hashimoto f8c877771d Merge branch 'f-packer-push-name'
11 years ago
Mitchell Hashimoto f5945eeb1b vmware/iso: new interpolation
11 years ago
Mitchell Hashimoto 034e4e676c amazon/*: use new interpolation functions
11 years ago
Mitchell Hashimoto becd6dacd7 template/interpolate: support custom functions
11 years ago
Mitchell Hashimoto 71932cccc9 template/interpolate: export RenderInterface
11 years ago
Mitchell Hashimoto 9d2e926808 template/interpolate: filter is case insensitive
11 years ago
Mitchell Hashimoto 41a6fe9fda template/interpolate: RenderMap to render a complex structure
11 years ago
Mitchell Hashimoto b9eea82a36 template: add tests for RawContents
11 years ago
Mitchell Hashimoto 2fb08be192 template: store Rawcontents
11 years ago
Mitchell Hashimoto b5f4ffa56c template: OnlyExcept skipping
11 years ago
Mitchell Hashimoto 3ebfe06ec8 packer: render build names
11 years ago
Mitchell Hashimoto 47b570a2d2 template/interpolate: flip disable to enableenv
11 years ago
Mitchell Hashimoto 97a48e35bb template: ParseFile
11 years ago
Mitchell Hashimoto 28dc1c2aed template: validate post-processor only/except
11 years ago
Mitchell Hashimoto 637fabc1c7 template: validate only/except
11 years ago
Mitchell Hashimoto 2f7e95cc46 template: Validate
11 years ago
Mitchell Hashimoto 2e4dd63912 template: parse push
11 years ago
Mitchell Hashimoto 43fbd26dc9 template: copy some description and min vesrion
11 years ago
Mitchell Hashimoto 839784b044 template: parse post-processors
11 years ago
Mitchell Hashimoto fbda5b119a template: variable parsing
11 years ago
Mitchell Hashimoto 4583ed6108 template: parse provisioners
11 years ago
Mitchell Hashimoto 95890003b7 template: builder parsing
11 years ago
Mitchell Hashimoto 1e745d9508 template/interpolate: user variables
11 years ago
Mitchell Hashimoto a4b5e08fe4 template/interpolate: upper/lower
11 years ago
Mitchell Hashimoto 7659a91445 template/interpolate: timestamp
11 years ago
Mitchell Hashimoto b84ec8da4b template/interpolate: isotime
11 years ago
Mitchell Hashimoto 5d205ec1fc template/interpolate: wd
11 years ago
Mitchell Hashimoto 125369d102 template/interpolate: can specify template data
11 years ago
Mitchell Hashimoto ff6573ce10 template/interpolate: basic + some funcs
11 years ago