Commit Graph
259 Commits
Author SHA1 Message Date
Shohei Maeda 9f28ced11c Add component_type optional field (#11872)
* Add `component_type` optional field

to support specifying the exact build image when multiple images exist in the same provider and region for a given iteration

* update docs

* update docs
2022-07-14 10:33:10 -07:00
Wilken Rivera 6b03734b2f Document known limitation of locals being used within a data source (#11864)
* Document known limitation of locals being used within a data source

* Update website/content/partials/datasources/local-dependency-limitation.mdx
2022-07-07 12:48:23 -04:00
Sylvia Moss b849ace27b Fail HCP datasources for revoked iteration (#11854) 2022-06-21 17:24:41 +02:00
Mahyar Saffari Moqaddam 3c9fb89a9f Update engine.mdx (#11833)
Corrected "indended" typo
2022-06-03 18:41:29 -04:00
Lucas Bajolet cbc67b7636 Merge pull request #11792 from teddylear/feat-pause_after-powershell
feat: Add pause_after config to powershell provisioner like shell
2022-05-30 16:47:25 -04:00
teddylear 36fc4a9f3d docs: Update unix packer config file location docs (#11797) 2022-05-23 15:47:23 -04:00
teddylear 000ace61a3 feat: Add pause_after config to powershell provisioner like shell
provisioner
2022-05-18 17:35:48 -04:00
sylviamoss 667e18f8be fix docs 2022-05-17 20:11:26 +02:00
teddylear 805225a113 feat: add http datasource (#11658) 2022-05-17 19:26:34 +02:00
Wilken Rivera 14ef80f9eb Update builders index page (#11765)
- Fix broken link thanks
- Update language text
2022-05-06 15:20:15 +02:00
Mike Schinkel fefb70be2b Added mention of HCL in Terminology>Templates (#11749) 2022-05-04 15:27:54 -04:00
Laura Pacilio ed54fb363a Make Builders Overview Page Clearer (#11743)
* Update page to make it clearer where users can find all the builder types

* MOve plugins to be first per PR feedback
2022-05-04 14:08:40 -04:00
doppelc 7d9c6fb795 Fix typo in docs (#11734) 2022-04-25 19:06:52 +02:00
Zachary Shilton a88d54c310 fix(website): remove empty index pages (#11702) 2022-04-11 16:08:39 -04:00
Patrick BandSylvia Moss 93ea7a5fc2 fix missing closing bracket for build {} section (#11654)
Co-authored-by: Sylvia Moss <[email protected]>
2022-03-10 16:18:07 +01:00
Adrien Delorme 7661e41412 reference main branch instead of master branch (#11652)
using search-n-replace
2022-03-10 16:07:02 +01:00
Laura Pacilio 2ca4051dbb Merge pull request #11626 from hashicorp/update-docs-hcp-packer-ga
Remove Beta language from HCP packer docs
2022-03-07 11:57:52 -05:00
Sai Diliyaer 08f26e7870 Website: Fix the hashicorp/packer link on the plugins creation page (#11629)
It's currently linked to `github.com/packer` which seems to be an unrelated personal GitHub repo.
2022-03-05 07:38:38 -05:00
Laura Pacilio e47821f13b Remove beta language from data sources overview page 2022-03-03 18:51:29 -05:00
Laura Pacilio 4a61d4ad0b Add notes about deactivated registries 2022-03-03 18:48:08 -05:00
Laura Pacilio d4447c3c17 Fix langauge on docs intro page and templates build block page 2022-03-03 18:38:15 -05:00
Laura Pacilio 0c908a3a75 Remove Beta language from HCP packer data sources pages 2022-03-03 18:29:53 -05:00
Johanan LiebermannandAdrien Delorme f8ea98d671 Add missing closing parenthesis (#11599)
* Add missing closing parenthesis

Signed-off-by: Johanan Liebermann <[email protected]>
Co-authored-by: Adrien Delorme <[email protected]>
2022-02-28 15:57:57 +01:00
Johanan Liebermann a66a15bd35 Add missing closing parenthesis (#11593)
Signed-off-by: Johanan Liebermann <[email protected]>
2022-02-25 11:09:56 -05:00
Ygal Blum 30813e743d Fix secret name to GPG_PASSPHRASE (#11586) 2022-02-24 10:53:23 -05:00
Wilken Rivera df5699c10d Rename integration program documentation (#11570) 2022-02-18 10:01:59 -05:00
Adrien Delorme 0362a3ec10 all shells: Pass env vars through a key value store (#11569)
* allowing to set shell env vars from a key/value map.
* tests

This new map will work alongside the `environment_vars` but it allows using a
datasource value seamlessly. At validation, and because `environment_vars` was
an array of strings containing `KEY=value`, using datsources would not work,
because these values are not known yet and would evaluate to `<unknown>`. With
this, the value and the key can be unknown and will validate correctly for
datasources.
2022-02-16 12:05:44 +01:00
Michael Weibel f718dbdcc0 docs: add link to builder list (#11571)
browsing through the documentation I was searching for the list of builders available. The obvious choice (builders page) didn't link to the list of builders and it took me a few minutes to find that. Adding a link to the plugins might speed up that bit and would avoid having to rescue to the search engine.
2022-02-16 11:39:04 +01:00
Adrien DelormeandWilken Rivera e03ad29ca0 Sanitize var code (#11566)
* evaluateLocalVariables: modify code for readability and some (not benchmarked) perfs

* Make default input variable type the DynamicPseudoType

This should be the default, and avoids a panic. This type can represent situations where a type is not yet known. Its meaning is undefined in cty.

* do not take Empty types from default value

* Update types.variables.go

Co-authored-by: Wilken Rivera <[email protected]>
2022-02-14 11:00:41 -05:00
9f4a1281dd Add packer plugins command and subcommands to interact with plugins (#11553)
* add basic docs for plugins command

* refactor docs

Co-Authored-By: Wilken Rivera <[email protected]>

* add plugins command

* add plugins subcommands

they do nothing for now

* add plugins installed command + tests

* add plugins install command

* add remove plugin command

* better docs for the plugins install command

* remove duplicate content

* better output for installed plugins

* add plugins required command

* Update plugins_install.go

* add newline after `Usage:`

* Update plugins_remove.go

* Update plugins_required.go

* Update plugins_remove.go

* Update plugins_installed.go

* Update plugins_install.go

* add docs

* Update plugins_install.go

* fix typos

* Update plugins_test.go

* fix typos

Co-Authored-By: Wilken Rivera <[email protected]>

* Update core_wrapper.go

Co-Authored-By: Wilken Rivera <[email protected]>

* Update website/content/docs/commands/plugins/remove.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/commands/plugins/required.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/commands/plugins/required.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update plugins_required.go

* Update install.mdx

* Update required.mdx

* plugins requirement, warn when no plugin was found

* Update website/content/docs/commands/plugins/required.mdx

Co-authored-by: Wilken Rivera <[email protected]>

Co-authored-by: Wilken Rivera <[email protected]>
Co-authored-by: Wilken Rivera <[email protected]>
2022-02-10 16:53:50 -05:00
Wilken Rivera ebcfd0cd8e windows-restart: Update documentation for restart_check_command (#11507)
Closes #11467
2022-01-24 12:48:02 +01:00
Ethan Davidson f9606a1352 plugin manifest file has been renamed (#11508) 2022-01-24 12:46:47 +01:00
Wilken Rivera 6c713d1fd6 Add example of marking Vault values as sensitive variables (#11503)
* Add example of marking Vault values as sensitive variables

* Update website/content/docs/templates/hcl_templates/functions/contextual/vault.mdx
2022-01-24 11:14:48 +01:00
b3341164cf feat: extract /plugins (#11464)
* feat: extract `/plugins`

Co-authored-by: Zachary Shilton <[email protected]>
Co-authored-by: Adrien Delorme <[email protected]>
2022-01-11 10:26:05 -05:00
Zachary ShiltonandWilken Rivera cae7bd9e5b feat(website): add official and HCP Packer Ready labels (#11449)
* refactor(website): use prop and CSS for plugin label spacing

* fix: add official tier label to built-in plugin docs

* feat(website): add BadgesHeader component

* refactor(website): use BadgesHeader in all content

* feat(website): add HCP ready demo, tweak badge look

* refactor: integrate work from add-plugin-version branch

* fix(website): correct bad import

* fix: use updated MDX custom component

* chore: remove plugin version label work from this branch

* chore: remove unused var

* fix: use new BadgesHeader interface for dual tags

* chore: remove unused var, refine comment

* fix: remove unused broken import

* fix: shorten property for HCP packer readiness

* Apply suggestions from code review

Remove a few demo labels before merging

Co-authored-by: Wilken Rivera <[email protected]>
2021-12-17 10:22:16 -05:00
Wilken Rivera 9f86de317b Update agains to against in the note section 2021-12-12 06:29:50 -05:00
Felipe Crescencio de OliveiraandWilken Rivera 2a8001cd87 Fix docs about running specific provisioners (#11442)
* Fix docs about running specific provisioners

* Update website/content/docs/templates/hcl_templates/blocks/build/provisioner.mdx

Co-authored-by: Wilken Rivera <[email protected]>
2021-12-12 06:27:39 -05:00
Adrien Delorme a2124eb594 Tiny tweaks and fixes for the PowerShell provisioner (#11410)
* add docs
* fix potential bug
2021-11-23 12:34:26 +01:00
Wilken Rivera 09b29bc4c0 Add a little specificity to the use of dynamic blocks (#11404) 2021-11-19 11:59:03 +01:00
Wilken RiveraandAdrien Delorme 06b35c39de hcp packer registry build labels (#11401)
* Add basic support for build_labels argument

* Update support for build_labels configuration argument

* Update complete test-fixture with a build_labels configuration
* Add test for deprecated labels argument
* Add deprecation for hcp_packer_registry.labels

When using the now deprecated labels argument of the new bucket_labels a
Warning will be presented to the user.

```
~>  HCP_PACKER_BUILD_FINGERPRINT=356786543567865456789656789 packer
build source.pkr.hcl
Warning: the argument hcp_packer_registry.labels has been deprecated and will be removed in a future release; please use hcp_packer_registry.bucket_labels
```

When trying to use both bucket_labels and labels together an error is
presented to the user.
```
~>  HCP_PACKER_BUILD_FINGERPRINT=ss6786543567865456789656789 packer
build source.pkr.hcl
Error: hcp_packer_registry.labels and hcp_packer_registry.bucket_labels are mutely exclusive; please use the recommended argument hcp_packer_registry.bucket_labels

  on source.pkr.hcl line 17:
    (source code not available)

```

* Update documentation for build_labels

* Apply suggestions from code review

Co-authored-by: Adrien Delorme <[email protected]>

* Update hcl2template/types.build.hcp_packer_registry.go

Co-authored-by: Adrien Delorme <[email protected]>
2021-11-18 09:40:08 +01:00
Wilken Rivera fe2d302421 Bump Packer plugin program navigation up one level (#11390)
* Bump Packer plugin program navigation up one level

* Fix file path
2021-11-10 14:28:18 -05:00
Sylvia MossandWilken Rivera d8a5ae729f Add docs for plugins HCP Packer support (#11389)
* add docs hcp support for plugins

* fix golang format

* Update website/content/docs/plugins/hcp-support.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/plugins/hcp-support.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* Update website/content/docs/plugins/hcp-support.mdx

Co-authored-by: Wilken Rivera <[email protected]>

* improve docs

* change page title

* Apply suggestions from code review

Co-authored-by: Wilken Rivera <[email protected]>
2021-11-10 13:11:29 -05:00
Elio B 2ff9bd5748 Fix typo (#11374) 2021-11-04 14:14:00 +01:00
DenisKruchkov 5cf05e0242 Fix typo. (#11363) 2021-10-28 10:01:29 -04:00
Laura Pacilio da8ec95249 Updates for HCP Packer docs
Enable HCP Packer docs and add note about public beta (#11339)
format markdown and mention that registry block is available in v1.7.7
2021-10-19 08:03:32 -07:00
Megan Marsh e3719dd8a4 Merge pull request #11319 from hashicorp/add_iteration_id
Add iteration
2021-10-11 13:18:10 -07:00
Megan Marsh b763b79d9f implement contextual variable packer.iteration_id 2021-10-11 10:55:44 -07:00
Adrien Delorme e99e038a72 Docs: remove reference to undefined map function (#11324) 2021-10-11 10:09:34 -04:00
bitmeal 28e82b480e update debugging info for cloud-init (#11316)
make example to wait for cloud-init use `cloud-init status --wait`
2021-10-11 13:46:57 +02:00
Kerim Satirli bc6f1e36e6 Fixes typos in docs (#11322)
* fixes typos in base docs

* fixes typos in example code

* fixes typos in website docs

* fixes link to Terraform provider

* fixes typo in function name
2021-10-11 10:19:49 +02:00