diff --git a/website/content/docs/plugins/creation/custom-datasources.mdx b/website/content/docs/plugins/creation/custom-datasources.mdx index 1afd43aee..8c9f09682 100644 --- a/website/content/docs/plugins/creation/custom-datasources.mdx +++ b/website/content/docs/plugins/creation/custom-datasources.mdx @@ -46,7 +46,7 @@ function, check our ### The "OutputSpec" Method This method returns a [hcldec.ObjectSpec](/guides/hcl/component-object-spec) of the data source output. -The object spec can be generated using the command [`mapstructure-to-hcl2`](https://github.com/hashicorp/packer/tree/master/cmd/mapstructure-to-hcl2) +The object spec can be generated using the command [`packer-sdc mapstructure-to-hcl2`](https://github.com/hashicorp/packer-plugin-sdk/tree/main/cmd/packer-sdc) just like the configuration spec for the `ConfigSpec` method. This method is used in `packer validate` command. Packer will use the spec to assign diff --git a/website/content/docs/provisioners/salt-masterless.mdx b/website/content/docs/provisioners/salt-masterless.mdx index 3079095c3..61d19fd2e 100644 --- a/website/content/docs/provisioners/salt-masterless.mdx +++ b/website/content/docs/provisioners/salt-masterless.mdx @@ -12,7 +12,7 @@ page_title: Salt Masterless - Provisioners Type: `salt-masterless` The `salt-masterless` Packer provisioner provisions machines built by Packer -using [Salt](http://saltstack.com/) states, without connecting to a Salt +using [Salt](https://saltproject.io/) states, without connecting to a Salt master. ## Basic Example diff --git a/website/content/guides/hcl/component-object-spec.mdx b/website/content/guides/hcl/component-object-spec.mdx index 9f44cc367..9ca8c29a6 100644 --- a/website/content/guides/hcl/component-object-spec.mdx +++ b/website/content/guides/hcl/component-object-spec.mdx @@ -8,15 +8,14 @@ description: Learn how to generate the HCL2 configuration of your component easi From v1.5, Packer can be configured using HCL2. Because Packer has so many builders, provisioners, and post-processors, we created a on code generation tool to add the HCL2-enabling code more easily. You can use this code generator -to create the HCL2 spec code of your custom plugin simply. It's a Go binary -package and is located in -[`cmd/mapstructure-to-hcl2`](https://github.com/hashicorp/packer/tree/master/cmd/mapstructure-to-hcl2). +to create the HCL2 spec code of your custom plugin simply. +It's a Go binary package made available through the Packer plugin SDK Say you want to configure the `Config` struct of a `Builder` in a package located in `my/example-plugin/config.go`. Here are some simple steps you can follow to make it HCL2 enabled: -- run `go install github.com/hashicorp/packer/cmd/mapstructure-to-hcl2` +- run `go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@latest` - Add `//go:generate packer-sdc mapstructure-to-hcl2 -type Config` at the top of `config.go`