Commit Graph
5086 Commits
Author SHA1 Message Date
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
jugglinmike 759cadaf0d Correct typo (#11555) 2022-02-09 15:19:01 -05:00
Kevin Wang 833bd51448 chore(website): bump @hashicorp/platform-cli (#11549) 2022-02-03 11:29:57 -05:00
packer-ci 661b85e18c cut version 1.7.10 2022-02-02 22:01:36 +00:00
Xiaoyu Zhong 37b38f9cb6 Fix format in plugin-location.mdx (#11543) 2022-01-31 11:20:45 +01:00
Dylan Staley 93c4b993e8 feat: display warning in IE 11 (#11528) 2022-01-26 10:46:42 +01:00
Zachary Shilton 19bb4a9110 website: link plugin version badges (#11513) 2022-01-24 16:38:24 +01: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
Bryce Kalow 83a0bcf67a chore: upgrade downloads page (#11504) 2022-01-19 13:05:08 -05:00
packer-ci 418284afee cut version 1.7.9 2022-01-19 15:50:09 +00:00
Kevin Wang 5e1be6f5ab feat: versioned-docs (#11434)
This PR introduces Versioned-Docs to Packer!
2022-01-13 13:07:13 -05:00
Kevin Wang 573011622b fix(algolia-index): Use TypeScript (#11496)
* fix(algolia-index): npm install -g npm@latest

* fix(algolia-index): `ts-node`

* fix(algolia-index): ts errors
2022-01-13 13:05:33 -05:00
Kevin Wang dd322819e9 fix(website): handle multiple redirects for plugin repos (#11488) 2022-01-11 13:47:39 -05: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
Noel Quiles 4b592ac40b website: Upgrade deps (#11470) 2021-12-23 11:38:19 -05:00
Noel Quiles 2c3a3c8794 Update @hashicorp/react-subnav (#11463) 2021-12-20 11:14:41 +01:00
Wilken Rivera 6176d79913 Add HCP Packer Ready badge to support plugins (#11456) 2021-12-17 12:17:27 -05:00
Zachary Shilton 63eaf1f99b feat(website): add version badge to external plugin docs pages (#11451) 2021-12-17 10:47:43 -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
Noel Quiles cf121d899e chore: Disable alert banner (#11452) 2021-12-16 15:22:59 -05:00
Noel Quiles 6618eb2e34 Update Dockerfile (#11446) 2021-12-14 10:12:28 -05:00
Alex Carpenter daa57fdc31 fix: redirects /home to / (#11445) 2021-12-14 12:22:36 +01:00
dependabot[bot] 799a5873c0 Bump next from 11.1.2 to 11.1.3 in /website (#11439)
Bumps [next](https://github.com/vercel/next.js) from 11.1.2 to 11.1.3.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v11.1.2...v11.1.3)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-12 19:30:02 -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
Mike Wickett 670bcfa5a0 update alert banner content (#11441) 2021-12-09 12:10:26 -05:00
Noel Quiles 3661155b74 website: Upgrade <HashiStackMenu /> to latest (#11433) 2021-12-07 17:11:28 -05:00
Adrien Delorme c4cc925da9 pull outscale docs from the freshly moved away outscale repo (#11428) 2021-12-02 13:52:58 -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 Rivera 41e6f760d9 Add details on the expected contents of a variable definitions file (#11403)
Closes #10903
2021-11-19 11:58:08 +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
Ethan Davidson 1b949085d4 Add git plugin (#11395) 2021-11-15 12:11:56 +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
Kevin Wang a9fdc19990 chore: react-subnav (#11378) 2021-11-03 17:36:19 -04:00
Adrien Delorme 6b74110e40 Update variables.mdx (#11375)
fix #11354
2021-11-03 17:16:06 +01:00
Wilken Rivera 64ddaa922a Remove broken link (#11361)
As reported in check
https://github.com/hashicorp/packer/runs/4016851893?check_suite_focus=true
2021-10-28 10:01:51 -04:00
DenisKruchkov 5cf05e0242 Fix typo. (#11363) 2021-10-28 10:01:29 -04:00
packer-ci c261e9d641 cut version 1.7.8 2021-10-27 18:56:52 +00:00
Zachary Shilton 91def1dde9 website: bump deps to fix print styles (#11350)
* website: bump deps to fix print styles

* website: fix up print styles

* fix: hashi-stack-menu print selector
2021-10-26 12:55:29 -04:00
Brandon Romano 0fea39d1da Update HashiConf alert-banner expiration
Updates the HashiConf Alert Banner expiration to 10/20 @ 11pm (PT)
2021-10-20 16:04:52 -07:00