packer-cn/hcl2template
Adrien Delorme 4bc16455b4
HCL2: add a packer block with a required_version input setting (#10149)
* add the possibility to set the packer.required_version field; to make sure the template file works with that version of Packer
* add tests
* add documentation on packer.required_version

Example:

packer {
  required_version = ">= 1.2.0, < 2.0.0"
}
2020-10-27 10:03:36 +01:00
..
function Add HCL2 aws_secretsmanager function (#10124) 2020-10-20 16:21:40 +02:00
internal WIP 2020-07-02 15:56:49 +02:00
repl packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
shim JSON to HCL2 (minimal best-effort) transpiler (#9659) 2020-08-25 10:51:43 +02:00
testdata add test 2020-09-30 12:02:52 +02:00
common_test.go refactor initialization out from packer configs + tests (#9627) 2020-07-24 10:58:03 +02:00
decode.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
docs.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
functions.go Add HCL2 aws_secretsmanager function (#10124) 2020-10-20 16:21:40 +02:00
parser.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
types.build.from.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
types.build.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
types.build.post-processor.go avoid passing generatedVars down during first prepare 2020-07-06 15:14:17 +02:00
types.build.provisioners.go implemet override provisioner's option for hcl2 2020-08-13 19:27:04 +02:00
types.build_test.go HCL2: add post-processors block to run multiple post-processor after a build (#9638) 2020-07-28 10:02:37 +02:00
types.hcl_post-processor.go fix docker-import postprocessor. 2020-07-29 14:59:50 -07:00
types.hcl_provisioner.go add build.name to hcl code (#10114) 2020-10-16 10:57:42 +02:00
types.hcl_ref.go Hcl2 input variables, local variables and functions (#8588) 2020-02-06 11:49:21 +01:00
types.kv.go make sure keyvalue and namevalue filters are using the same naming as the service being used 2020-04-16 17:22:13 +02:00
types.kv.hcl2spec.go HCL2: generate hcl tags with go-cty tags too (#9306) 2020-05-28 11:19:00 +02:00
types.packer_config.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
types.packer_config_test.go HCL2: add post-processors block to run multiple post-processor after a build (#9638) 2020-07-28 10:02:37 +02:00
types.source.go pass source name from local source name too 2020-07-06 16:07:29 +02:00
types.source_test.go Allow to override some source fields from the build section 2020-05-25 17:09:37 +02:00
types.variables.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
types.variables_test.go Make max_retries a string to allow variable interpolation (#9673) 2020-08-05 17:41:20 +02:00
utils.go packer console for HCL2 (#9359) 2020-06-05 17:23:54 +02:00
version.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00
version_required.go HCL2: add a packer block with a required_version input setting (#10149) 2020-10-27 10:03:36 +01:00