Commit Graph

40 Commits (c0f7b2ef3968ea229155f0780a7eec36a51d6bd2)

Author SHA1 Message Date
Wilken Rivera 4e58987026
command/fmt: Ensure all variable files ending in `.pkrvars.hcl` get formatted (#10377)
5 years ago
Wilken Rivera acabc1c1aa
Add packer fmt command (#10225)
5 years ago
Adrien Delorme 6911495fc4 add VariableAssignment struct that help describe an input var assignment
5 years ago
Adrien Delorme b892414e84 add failing test case
5 years ago
Adrien Delorme 4e08ea6a92 add a test
5 years ago
Adrien Delorme 180dc4a54e add test
5 years ago
Sylvia Moss 9181a435aa
Make max_retries a string to allow variable interpolation (#9673)
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 0ed10f921f add test
6 years ago
Adrien Delorme db6c3adbba add hcl2 provisioner type that reprepares itself
6 years ago
Adrien Delorme 284d46a1e0 WIP
6 years ago
Adrien Delorme 3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks (#9490)
6 years ago
Adrien Delorme c2975140cf
HCL2: allow to use keep_input_artifact in post processors (#9477)
6 years ago
Jeremiah Snapp 0d7c5dc670
Enable only/except for provisioners and post-processors (#9357)
6 years ago
Adrien Delorme f09fd790b7
Merge branch 'master' into master
6 years ago
Adrien Delorme 125ffe36c3 Allow to override some source fields from the build section
6 years ago
Adrienne Cohea 6c6039798c
Add test.
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
Adrien Delorme 710ebdcef5 add more test for var files
6 years ago
Adrien Delorme 0ccff0d5b9 all variables must have a value.
6 years ago
Adrien Delorme 6d8cce501e tweak validation & add tests
6 years ago
Adrien Delorme 9b649594c6 update tests
6 years ago
Adrien Delorme 59cc246942 Merge remote-tracking branch 'origin/master' into fix_8730
6 years ago
Adrien Delorme 50896d4ddf WIP
6 years ago
Sylvia Moss 591b684f08
Fix HCL2 local variables decoding to allow local usage within another local in the same locals block (#8755)
6 years ago
Adrien Delorme a8fcb2d91a
HCL2: add support for dynamic blocks, document for loops and splat expressions (#8720)
6 years ago
Adrien Delorme 3c213e6eaf continue and realise and unused undefaulted value triggers an error
6 years ago
Adrien Delorme 79867ca26e add test for unset variable
6 years ago
Adrien Delorme 4b10c5a87c try to reproduce #8730 in tests
6 years ago
Adrien Delorme 193dad46e6
Hcl2 input variables, local variables and functions (#8588)
6 years ago
Sylvia Moss 08b0bd1d2c
Fix HCL2 code generation for slices within another slice (#8669)
6 years ago
Adrien Delorme 2d1a67c6cb hcl2: allow to optionnaly name provisioners and post-processors
6 years ago
Adrien Delorme 0102f5b6fa remove unecessary inexistant block panic + add test
6 years ago
Adrien Delorme 219c80b1e6 better empty folder test
6 years ago
Adrien Delorme aad90842b4 add test case and fix the breaking ones
6 years ago
Adrien Delorme 5ef1893b00 fix crash when build.sources is set to an invalid name
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Adrien Delorme 0e4fec03d7 make complete tests files link as windows can't handle synlinks
6 years ago
Adrien Delorme 2b0e0d4eab add hcl2template pkg
6 years ago