packer-cn/website/source/docs/machine-readable/command-inspect.html.markdown

1.3 KiB

layout page_title description
docs_machine_readable Command: inspect - Machine-Readable Reference These are the machine-readable types that exist as part of the output of `packer inspect`.

Inspect Command Types

These are the machine-readable types that exist as part of the output of packer inspect.

template-variable (3)

A user variable defined within the template.

	<p>
	<strong>Data 1: name</strong> - Name of the variable.
	</p>

	<p>
	<strong>Data 2: default</strong> - The default value of the
	variable.
	</p>

	<p>
	<strong>Data 3: required</strong> - If non-zero, then this variable
	is required.
	</p>
</dd>

<dt>template-builder (2)</dt>
<dd>
	<p>
	A builder defined within the template
	</p>

	<p>
	<strong>Data 1: name</strong> - The name of the builder.
	</p>
	<p>
	<strong>Data 2: type</strong> - The type of the builder. This will
	generally be the same as the name unless you explicitly override
	the name.
	</p>
</dd>

<dt>template-provisioner (1)</dt>
<dd>
	<p>
	A provisioner defined within the template. Multiple of these may
	exist. If so, they are outputted in the order they would run.
	</p>

	<p>
	<strong>Data 1: name</strong> - The name/type of the provisioner.
	</p>
</dd>