packer-cn/hcl2template/testdata/variables
Megan Marsh fbbda0f9d9
Sensitive locals (#10509)
* Allow locals to be delcared as individual blocks, and give them the Sensitive flag

* add docs for new local block

* linting

* add tests

* modified parsing to use schema, check for dupes properly

* update comment

fix wording a liiitle

* add tests for duplicate variables definition in two different files

* remove unnecessary slice initialisation

* fix crash by returning when decode error is hit

* parseLocalVariables: only treat a local vars if its not nil

also return in case of error
return locals in case of error too

* fix duplicate_locals test for windows

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2021-01-26 10:21:44 +01:00
..
complicated Fix HCL2 local variables decoding to allow local usage within another local in the same locals block (#8755) 2020-02-21 12:12:30 +01:00
duplicate_locals Sensitive locals (#10509) 2021-01-26 10:21:44 +01:00
validation add VariableAssignment struct that help describe an input var assignment 2020-11-02 15:22:29 +01:00
basic.pkr.hcl Sensitive locals (#10509) 2021-01-26 10:21:44 +01:00
duplicate_variable.pkr.hcl Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
duplicate_variables.pkr.hcl Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
empty.pkr.hcl tweak validation & add tests 2020-03-09 16:16:59 +01:00
foo-string.variable.pkr.hcl add more test for var files 2020-03-12 17:08:53 +01:00
invalid_default.pkr.hcl Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
provisioner_variable_decoding.pkr.hcl Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
recursive_locals.pkr.hcl Fix HCL2 local variables decoding to allow local usage within another local in the same locals block (#8755) 2020-02-21 12:12:30 +01:00
set-foo-too-wee.hcl add more test for var files 2020-03-12 17:08:53 +01:00
unknown_key.pkr.hcl all variables must have a value. 2020-03-09 17:25:56 +01:00
unset_unused_string_variable.pkr.hcl WIP 2020-03-03 11:15:56 +01:00
unset_used_string_variable.pkr.hcl update tests 2020-03-04 13:01:18 +01:00