Commit Graph

164 Commits (4e33f99c79ea2299a2ef48e017c6761a8b486333)

Author SHA1 Message Date
Wilken Rivera acabc1c1aa
Add packer fmt command (#10225)
6 years ago
Adrien Delorme deba1484ff
HCL2: allow calling env as input var default value (#10240)
6 years ago
Adrien Delorme fd873b8811 Referenceable: explain a bit more of the whys
6 years ago
Adrien Delorme 10eb32d29e require less English
6 years ago
Adrien Delorme 2987d25335 simplify tests
6 years ago
Adrien Delorme 20b7fd9687 add hcl2template/addrs/doc.go
6 years ago
Adrien Delorme 971254928a various fixes
6 years ago
Adrien Delorme 88175873e5 fix tests to actually check cty values & types
6 years ago
Adrien Delorme 6911495fc4 add VariableAssignment struct that help describe an input var assignment
6 years ago
Adrien Delorme 8de2f40a07 add tests for length
6 years ago
Adrien Delorme b892414e84 add failing test case
6 years ago
Adrien Delorme 9932fd1217 add Variable.validateValue func
6 years ago
Adrien Delorme 4d386dd806 add length function that can work with more types
6 years ago
Adrien Delorme 4e08ea6a92 add a test
6 years ago
Adrien Delorme 91d7332471 add basic code for variable validation parsing
6 years ago
Adrien Delorme 4bc16455b4
HCL2: add a packer block with a required_version input setting (#10149)
6 years ago
Adrien Delorme 6d4fae0f2d
Add HCL2 aws_secretsmanager function (#10124)
6 years ago
Megan Marsh cc7dbf6092
Add consul_key function to integrate concul with hcl2 tempaltes. (#10119)
6 years ago
Megan Marsh a8ee23a9f9
Merge pull request #10117 from hashicorp/packer_version_func_hcl
6 years ago
Megan Marsh 09c6d2880f implement packer_version variable in hcl
6 years ago
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114)
6 years ago
Adrien Delorme 4cb218749b remove unecessary check
6 years ago
Adrien Delorme ebb1cb406c ignore walk error
6 years ago
Adrien Delorme bb22cfcf34 HCL2: pass sensitive variables to packer.LogSecretFilter
6 years ago
Adrien Delorme 180dc4a54e add test
6 years ago
Adrien Delorme f3e65b5eb1 use "github.com/hashicorp/go-cty-funcs/collection".CoalesceFunc
6 years ago
Adrien Delorme a70164f489
HCL2: when the type of a variable is not known evaluate setting as a litteral. (#9863)
6 years ago
Adrien Delorme bdf198594e hcl2 inspect: sort variables to have a consistent output
6 years ago
Adrien Delorme eb4069a1b7 hcl variables: return an unknown value in when no default is set
6 years ago
Adrien Delorme 91c5a4613c HCL2 inspect remove debug values
6 years ago
Adrien Delorme 5ba134ac5b
JSON to HCL2 (minimal best-effort) transpiler (#9659)
6 years ago
Megan Marsh d486459a00
Merge pull request #9764 from hashicorp/hcl2_provisioner_override
6 years ago
sylviamoss 62c3743890 implemet override provisioner's option for hcl2
6 years ago
jsmcnair 78c280b1b7 Use common funcs / fix panic / clarify docs
6 years ago
jsmcnair 33e3f62ff7 Add vault function for HCL2 and document
6 years ago
Sylvia Moss 9181a435aa
Make max_retries a string to allow variable interpolation (#9673)
6 years ago
Megan Marsh 2bd2954412 fix cty bool passing for provisioners, too
6 years ago
Megan Marsh 713e7a2683 fix docker-import postprocessor.
6 years ago
Adrien Delorme c7b35dd6bc
HCL2: add post-processors block to run multiple post-processor after a build (#9638)
6 years ago
Adrien Delorme 44616d3bff
refactor initialization out from packer configs + tests (#9627)
6 years ago
Adrien Delorme 125178d943
core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622)
6 years ago
Adrien Delorme f3fa8cd617 post-processor/provisioner: handle uint64 buildvars
6 years ago
Sylvia Moss 9c1409dbba
Add content_library_destination to import VM template to a Content Library (#9551)
6 years ago
Adrien Delorme 03d29386dd
fix error message typo (#9541)
6 years ago
Adrien Delorme 34ff3d0c8f hcl2 GetBuilds: use packer.BuilderDataCommonKeys to avoid forcing all builders to return exactly what they will return
6 years ago
Adrien Delorme 0293f69fa1 default build values to be unknown
6 years ago
Adrien Delorme eaf63e3bb5 pass source name from local source name too
6 years ago
Adrien Delorme cf514d31f2 avoid passing generatedVars down during first prepare
6 years ago
Adrien Delorme 0ed10f921f add test
6 years ago
Adrien Delorme 90610dcf04 docs
6 years ago