packer/packer_test/common/plugin_tester/docs/datasources/datasource-name.mdx
Lucas Bajolet 35b2317ef3 packer_test: rename/split lib into common/check
The lib name for the common components for writing packer_test suites
was not clear, and did not follow the convention established in Packer
core and plugins.
Therefore this commit does two things: first the lib is renamed into
common as to follow this convention, and clearly document which
components are common to all tests.
Also checkers are placed in a subpackage of common, common/check, so
that it is clearer what is meant to be used as checks for a command's
execution status after it's been run, as part of Assert.
2024-09-11 16:08:51 -04:00

78 lines
1.6 KiB
Text

---
description: >
The scaffolding data source is used to create endless Packer plugins using
a consistent plugin structure.
page_title: Scaffolding - Data Sources
nav_title: Scaffolding
---
# Scaffolding
Type: `scaffolding`
<!--
Include a short description about the data source. This is a good place
to call out what the data source does, and any requirements for the given
data source environment. See https://www.packer.io/docs/datasources/amazon-ami
-->
The scaffolding data source is used to create endless Packer plugins using
a consistent plugin structure.
<!-- Data source Configuration Fields -->
### Required
- `mock` (string) - The name of the mock to use for the Scaffolding API.
<!--
Optional Configuration Fields
Configuration options that are not required or have reasonable defaults
should be listed under the optionals section. Defaults values should be
noted in the description of the field
-->
### Optional
- `mock_api_url` (string) - The Scaffolding API endpoint to connect to.
Defaults to https://example.com
<!--
A basic example on the usage of the data source. Multiple examples
can be provided to highlight various build configurations.
-->
### OutPut
- `foo` (string) - The Scaffolding output foo value.
- `bar` (string) - The Scaffolding output bar value.
<!--
A basic example on the usage of the data source. Multiple examples
can be provided to highlight various build configurations.
-->
### Example Usage
```hcl
data "scaffolding" "example" {
mock = "bird"
}
source "scaffolding" "example" {
mock = data.scaffolding.example.foo
}
build {
sources = ["source.scaffolding.example"]
}
```