Fix broken links (#11016)

This commit is contained in:
Wilken Rivera 2021-05-13 12:16:04 -04:00 committed by GitHub
parent f900049fc2
commit a8db14ab6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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`