Commit Graph

78 Commits

Author SHA1 Message Date
Adrien Delorme 6d4fae0f2d
Add HCL2 aws_secretsmanager function (#10124)
* refactor aws get secrets function out to reuse it else where
* add aws_secretsmanager func and docs for HCL2
* fix GetSecret: allow to pick secret version
2020-10-20 16:21:40 +02:00
Megan Marsh cc7dbf6092
Add consul_key function to integrate concul with hcl2 tempaltes. (#10119)
* Add consul_key function to integrate concul with hcl2 tempaltes.
* sidebar nav
2020-10-19 14:07:13 +02:00
Megan Marsh a8ee23a9f9
Merge pull request #10117 from hashicorp/packer_version_func_hcl
implement packer_version func in hcl
2020-10-16 14:38:39 -07:00
Megan Marsh 09c6d2880f implement packer_version variable in hcl 2020-10-16 14:07:05 -07:00
Megan Marsh 66b81d9bee
add build.name to hcl code (#10114) 2020-10-16 10:57:42 +02:00
Wilken Rivera a17b1a5a89
Fix references to source blocks (#10113) 2020-10-16 10:26:29 +02:00
Wilken Rivera 7ba2ffe171
Merge pull request #10106 from hashicorp/more_hcl_docs
More hcl docs
2020-10-15 13:50:46 -04:00
Wilken Rivera 343ac2d48d
syntax-json: Fix nested provisioner block example (#10109) 2020-10-15 16:04:01 +02:00
Megan Marsh 06efa61c13 a tiny bit more cleanup 2020-10-14 15:56:58 -07:00
Megan Marsh da15b85451 more updates 2020-10-14 13:35:21 -07:00
Adrien Delorme fcaf766569 add docs for sensitive variables 2020-10-05 15:34:35 +02:00
Adrien Delorme a70164f489
HCL2: when the type of a variable is not known evaluate setting as a litteral. (#9863)
* tests
* docs
2020-09-02 16:26:50 +02:00
Megan Marsh cf1a39a4e8 add variable gotcha to the variables docs not just the from-json hcl guides. 2020-08-26 10:54:39 -07:00
Adrien Delorme 7de6c21a8a
HCL: document contextual source variable usage (#9799)
It is possible to use ${source.name} and ${source.type}, this was not documented before
2020-08-21 13:37:08 +02:00
jsmcnair 78c280b1b7 Use common funcs / fix panic / clarify docs 2020-08-12 22:34:13 +01:00
jsmcnair 8666ebceca Fix broken header 2020-08-11 09:48:00 +01:00
jsmcnair 33e3f62ff7 Add vault function for HCL2 and document 2020-08-11 09:18:15 +01:00
Adrien Delorme c7b35dd6bc
HCL2: add post-processors block to run multiple post-processor after a build (#9638)
added `post-processors` block to run chained post-processors after a build.
Before this, defining multiple `post-processor` blocks after
provisioning steps would run them sequentially, now doing this makes them start
from the build's artifact. To queue post-processors you now have to define them
in a `post-processors` block.

This is a breaking change.
2020-07-28 10:02:37 +02:00
Adrien Delorme 125178d943
core: Decode: when in HCL2 decoding mode; reset the whole struct before preparing it. (#9622)
* core: Decode when in HCL2 decoding mode; reset the whole struct before preparing it.
* HCL2: add path variables + docs & tests

Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-07-23 09:25:07 +02:00
Jonathan Neal d8b67f8520
📌 Hard Pin Website Dependencies (#9543)
* Update and pin dependencies
* Update NextJS Scripts
* npm run lint
* npm run format
* docs generator: indent docs by two and make spacing better

Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-13 12:33:16 +02:00
Adrien Delorme 3d371a2d5d
Add complete HCL2 examples + allow to name a singular build.source blocks (#9490)
* in the examples/hcl folder
* add possibility to name singular build.source blocks to differentiate their output and to filter on them
2020-07-02 11:07:59 +02:00
Sylvia Moss 99046c9178
Share build info with Provisioner and Post-Processor via HCL2 variables (#9444) 2020-06-29 13:44:57 +02:00
Adrien Delorme c2975140cf
HCL2: allow to use keep_input_artifact in post processors (#9477)
* HCL2: allow to use keep_input_artifact in post processors
* add basic test
* add docs
2020-06-25 09:36:48 +02:00
Adrien Delorme fb337f8867
hcl work on only/except (#9454)
* HCL2: allow to skip a named build block too

* test that excepting a build block works

* test only on a named build block

* add/update docs
2020-06-23 10:53:16 +02:00
Adrien Delorme 451d4c2620
hcl2 docs pass (#9375)
* moved blocks and functions top the nav list for easier access ( I think those will be used a lot)
* added a concrete fileset example
* added more concrete examples in the blocks doc
2020-06-09 12:42:01 +02:00
Adrien Delorme eeabae88e3 Update abspath.mdx 2020-06-08 15:29:45 +02:00
Adrien Delorme cf6eca7e1c Revert "Add pwd function to HCL"
This reverts commit 2800043149.
2020-06-08 14:59:27 +02:00
Adrien Delorme 44dfa221de Revert "Add template_dir function to HCL"
This reverts commit 3b9a0427cd.
2020-06-08 14:59:22 +02:00
Megan Marsh d73f83a9d9
Merge pull request #9367 from jeremiahsnapp/add-template_dir-and-pwd-functions
Add template_dir() and pwd() functions to HCL
2020-06-05 12:57:04 -07:00
Megan Marsh 2c89d086dc typo in docs 2020-06-05 12:44:32 -07:00
Jeremiah Snapp 3f2b8587b1 Replace regexreplace docs typo with regex_replace
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:17:18 -04:00
Jeremiah Snapp 3b9a0427cd Add template_dir function to HCL
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:14:36 -04:00
Jeremiah Snapp 2800043149 Add pwd function to HCL
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
2020-06-05 13:14:03 -04:00
Moss 110b1411d7 Update provisioners and post-processor hcl2 docs 2020-06-05 15:49:09 +02:00
Megan Marsh 02590f6c44
Merge pull request #9329 from hashicorp/je.website-maintenance-5-29-20
🌷 Website Spring Maintenance
2020-06-03 16:25:23 -07:00
Adrien Delorme 52ba74e3c9 better docs 2020-06-02 16:33:32 +02:00
Adrien Delorme 1147ef9a36
Merge pull request #9291 from hashicorp/f-singular-build-source-blocks
Allow to set source fields from a new `build.source` block
2020-06-02 12:38:45 +02:00
Adrien Delorme 83b3eb3be2 better words on the hcl2 merge 2020-06-02 12:35:32 +02:00
Adrien Delorme 80885fd410
Update website/pages/docs/from-1.5/blocks/variable.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 12:13:50 +02:00
Adrien Delorme 935ac55d24 more examples for the source block 2020-06-02 12:11:55 +02:00
Adrien Delorme 9a22e85e91 Update source.mdx 2020-06-02 12:01:49 +02:00
Adrien Delorme 171809b033 Update source.mdx 2020-06-02 12:01:21 +02:00
Adrien Delorme 3640bd9f01
Update website/pages/docs/from-1.5/blocks/variable.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:58:01 +02:00
Adrien Delorme 4349a55e61 Explain that input values can be used in locals from example locals block 2020-06-02 11:57:32 +02:00
Adrien Delorme ffcf073007 Update source.mdx
remove double space
2020-06-02 11:53:14 +02:00
Adrien Delorme 5c6e4e47d7
Update website/pages/docs/from-1.5/blocks/variable.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:51:33 +02:00
Adrien Delorme 7c3cc995a9
Update website/pages/docs/from-1.5/blocks/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:51:19 +02:00
Adrien Delorme 456b0fa0a4
Update website/pages/docs/from-1.5/blocks/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:46 +02:00
Adrien Delorme f4c393097a
Update website/pages/docs/from-1.5/blocks/source.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:28 +02:00
Adrien Delorme 5cee17ca5f
Update website/pages/docs/from-1.5/blocks/locals.mdx
Co-authored-by: Megan Marsh <megan@hashicorp.com>
2020-06-02 11:50:17 +02:00