Commit Graph
300 Commits
Author SHA1 Message Date
Megan Marsh c25c27b6b6 add docs pages for new data sources 2021-09-07 10:27:25 -07:00
Megan Marsh 48de1fc7da allow datasources to use other datasources
create a null data source for testing. We can choose to document if we want to, but it's a convenience for us

add a test to catch cyclic datasource dependency, update tests to include out of order data sources, and update the code to clean up the returned diagnostics generated from the recursive evaluation

PR review comments
2021-09-03 16:10:39 -07:00
Megan Marsh fd80f8da8c Add two new data sources -- hcp-packer-iteration and hcp-packer-image. These data sources together will allow users to query hcp_packer for the image_ids they need to use as source images to their builds, with a simple UI and clear outputs.
add quick and dirty acceptance test for hcp packer image iteration and hcp packer image data sources
PR review
linting
2021-09-03 15:51:09 -07:00
Adrien Delorme 27d89ac8d4 update all plugins + pin go to go 1.17 (#11237)
* up plugins and get rid of a dependency loop from packer to packer
2021-09-02 12:15:13 +02:00
Megan Marsh d6792820f4 Merge pull request #11227 from hashicorp/hcp_data_source
Implement hcp packer data source.
2021-08-31 09:33:48 -07:00
Adrien DelormeandSylvia Moss 9bdeb84cda Clarify what the labels of a source block do. (#11236)
Co-authored-by: Sylvia Moss <[email protected]>
2021-08-31 16:13:47 +02:00
Adrien Delorme d25373a8d6 move inspec provisioner out (#11230) 2021-08-31 12:07:26 +02:00
Adrien Delorme acb01cb800 move salt-masterless provisioner out (#11229)
* move salt-masterless provisioner out
* go get github.com/hashicorp/packer-plugin-salt
2021-08-31 12:07:10 +02:00
Florian Sommerfeld eb39a3120e Fix typo in autounattend_windows.mdx (#11233) 2021-08-31 10:46:07 +02:00
Megan Marsh 60b734733b reworked docs, and created docs page. Not adding to the website index because we don't want this doc page live until after the HCP Packer registry enters public beta 2021-08-30 16:27:08 -07:00
Megan Marsh c0eb830c42 better docstrings and regenerate docs 2021-08-30 15:53:29 -07:00
Megan Marsh 980deeb684 Implement hcp packer data source. This is a rough copy of the terraform provider's data source, to make beta user experience consistent across both sources 2021-08-27 12:03:55 -07:00
Adrien Delorme eb8e302941 hcl2_upgrade: special case: vsphere fix (#11216)
* fix typo

* hcl2_upgrade: special case linux_options and network_interface to block instead of maps

* Update hcl2_upgrade_test.go

* Update hcl2_upgrade_test.go

remove unused code

* hcl2_upgrade: support strftime too (#11220)

* hcl2_upgrade strftime function
* create legacy_strftime.mdx
2021-08-25 14:20:08 +02:00
Adrien Delorme 1d915adad1 file provisioner: add possibility to set content + tests (#11209) 2021-08-17 11:24:29 +02:00
a534c743cf HCP Packer registry enabled Packer client (#11154)
* Add working registry pkg

* Add custom error for handling the loading of PAR environment variables

* Working Publish to Build, with proper error handling for bucket names

* Update hcp-sdk-go to use branch instead of mod replace directive

* Update Packer build status configuration

* Add support for HCP_PACKER_BUILD_FINGERPRINT env

* Add support for publishing one or more PARtifacts from a single build

* add git shas to this branch

* Add ability to set provider name if available

* Add working RegistryBuilder type

* Add RegistryPostProcessor as wrapper post-processor

* When in PAR mode a empty RegistryPostProcessor is added to the end of
  the post-processor list to publish all final image data.

* Add support for updating a build from PAR that is not in a DONE state

* Fix a small issue with creation the initial builds for an empty
  iteration.

* Add PAR URL to post-processor display

* Implement hcp_packer_registry block (#11168)

* Update vendored Amazon plugin to v1.0.1-dev

* Fix panic when running a Packer registry build in a clean directory

* Remove the publishing of post-processor metadata from the registry
  post-processor.

* Remove metadata add from registry_builder

* Update registry builder to skip a build that was found to be DONE

Co-authored-by: Megan Marsh <[email protected]>
Co-authored-by: Sylvia Moss <[email protected]>
2021-08-05 09:25:19 -04:00
HACK SPHERE LABS 3b733eb0f8 added newest packer-plugin-xenserver and xcp-ng (#11166)
the old citrix plugin has not been updated recently, so the sponsored fork is added, and references to xcp-ng added
2021-07-29 15:49:34 +02:00
Joseph Daniel 33a4ba2dc1 Fix incorrect isotime output (#11157) 2021-07-20 10:54:29 -04:00
Megan Marsh c56f34f9d3 add stdin to docs for fmt (#11132) 2021-07-07 10:11:02 -04:00
Matt Robinson fe425e533d fix typo in configure docs 2021-06-25 20:10:20 -04:00
Mark Lewis 5b8cce603d Minor formatting improvement (#11106) 2021-06-21 17:34:13 +02:00
Wilken Rivera e22346f0fa Extract ProfitBricks Plugin (#11084)
* Extract ProfitBricks Plugin

* Update CHANGELOG
2021-06-14 17:30:58 -04:00
GennadySpbandSylvia Moss 51e7a95b3b Fix link ref (#11079)
* Fix link ref

* Update website/content/docs/templates/hcl_templates/functions/uuid/uuidv5.mdx

Co-authored-by: Sylvia Moss <[email protected]>

Co-authored-by: Sylvia Moss <[email protected]>
2021-06-11 16:41:10 +02:00
Wilken Rivera 4ab255caba Update absolute links to relative (#11068)
* Update absolute links to relative

* Update packer-integration-program.mdx

Fix case for component names
2021-06-04 11:58:51 +02:00
Andy Bettisworth 940180fb5b spelling (#11064) 2021-06-02 15:18:37 +02:00
Megan Marsh f80da79b85 Merge pull request #11046 from hashicorp/extract_oneandone
Extract 1&1 builder
2021-05-25 08:44:25 -07:00
Wilken RiveraandJeff Escalante f3f58b1c39 Add Packer Integration Program page (#11042)
* Initial draft of Packer Integration Program docs page

- [ ] Add text from program document.
- [ ] Fix image alignment
- [ ] Fix Checklist alignment (remove bullets if possible)
- [ ] Validate with program team

* Fix broken markdown

* fix styling on centered image and checklist

* revert package-lock update

* Update packer-integration-program.mdx

Fix a few formatting issues

Co-authored-by: Jeff Escalante <[email protected]>
2021-05-25 09:22:12 -04:00
sylviamoss e3010fa817 extract oneandone and add remote docs 2021-05-25 14:26:22 +02:00
Megan MarshandAdrien Delorme 638be57e43 document gotcha around third party plugins (#11032)
* document gotcha around third party plugins
* Update website/content/docs/commands/hcl2_upgrade.mdx

Co-authored-by: Adrien Delorme <[email protected]>
2021-05-25 13:55:25 +02:00
69572b442a Add tip about using local instead of locals for complex cases (#11036)
* add tip about using local instead of locals

* Apply suggestions from code review

Co-authored-by: Megan Marsh <[email protected]>

Co-authored-by: Wilken Rivera <[email protected]>
Co-authored-by: Megan Marsh <[email protected]>
2021-05-24 21:50:35 -04:00
Megan Marsh 57639e8330 remove workflow-tips-and-tricks pages 2021-05-18 09:49:35 -07:00
Megan Marsh 41c0668d6e delete comment guide, moving contents to the comment section of the template engine docs for json templates 2021-05-18 09:43:42 -07:00
Megan Marsh b6a9da11a2 clarify template variable warning 2021-05-18 09:21:26 -07:00
Megan Marsh a3daf4c686 escape backticks 2021-05-18 09:18:40 -07:00
Megan Marsh d9b874f118 tweak engine docs to contain guide docs for isotime
remove docs page
2021-05-18 09:08:25 -07:00
Megan Marsh 1d4a8e7ba2 delete veewee references. Veewee hasn't been updated for three years, and the veewee-to-packer library for even longer. This page gets almost no views. 2021-05-18 08:44:45 -07:00
Wilken Rivera d24fa1d8ad Add link to the new HCL2 upgrade command tutorial
This change replaces the from JSON v1 guide with a redirect to the
released hcl2_upgrade command tutorial on learn.hashicorp.com
2021-05-14 14:17:25 -04:00
Wilken Rivera c262467413 Extract Azure plugin components from Packer (#10979)
* Remove Azure plugin components and docs

* Add Azure plugin to vendored_plugins

* Updates Azure to use remote plugin docs

* Revendor packer-plugin-azure at v0.0.2

* Update to new version of the Packer plugin SDK v0.2.1
* Update to the official version of [email protected]
* Update salt provisioner to use new go-getter API

* Update vendored plugins to working versions

This changes fixes an issue with the go.sum for the Azure plugin.
It also revendors the plugins for puppet, chef, and ansible as v0.0.1
of those plugins where not usable.
2021-05-13 16:13:21 -04:00
Wilken Rivera a8db14ab6b Fix broken links (#11016) 2021-05-13 12:16:04 -04:00
Megan Marsh f24599ecca Merge pull request #11005 from ryapric/packer-docs-build-kvm-in-container
Rough guide-doc update for QEMU KVM builds from within containers
2021-05-11 10:04:11 -07:00
Ryan J. Price 32dc0aa731 Remove extra parenthesis 2021-05-11 11:00:08 -05:00
Ryan J. Price f26a764b8a Clarify paragraph wording 2021-05-10 20:32:23 -05:00
Ryan J. Price 09676ac699 Missed VMWare in CICD Guide change 2021-05-10 20:27:37 -05:00
Ryan J. Price 90b6747e3d Edit CICD website guide to be more clear 2021-05-10 20:24:37 -05:00
Megan Marsh 8c93297eb0 update docs to use double quotes, which works on more shells (#11009) 2021-05-10 16:00:53 -04:00
Ryan J. Price 627cbcdcba Rought guide-doc update for QEMU KVM builds from within containers 2021-05-08 17:03:23 -05:00
Steph Gosling 1e51ed9df9 fix: specify a string for name rather than a variable which is not supported (#10987) 2021-05-07 11:02:03 +02:00
Taylor Chaparro 9441a69ad1 azure builder: add support for shared image gallery storage account type 2021-04-23 16:57:24 -07:00
Contigo Red 82a1f017aa azure: arm builder: adding keep_os_disk parameter to control OS disk deletion.
keep_os_disk: auto generated help
azure: arm builder: add disk os to artifact
azure: arm builder: fmt'ed artifact_test.go
2021-04-23 12:36:09 -07:00
Zachary Shilton 95ed4443bb website: check for unlinked content, rm split-out vagrant content (#10958) 2021-04-23 17:04:20 +02:00
Sylvia Moss 0bd7b20bb8 website: add the possibility to fetch a local docs.zip for remote plugins (#10973) 2021-04-23 16:33:32 +02:00