Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

package_inspect

Inspect a Zarf package definition and expose structured metadata facts.

Include it as colonel_byte.zarf.package_inspect.

Added in colonel_byte.zarf 0.31.0.

Runs zarf package inspect definition against a package source and parses the YAML definition.

A zarf_public_key with no zarf_verify requires a signature, which is stricter than the module’s own default. See zarf_verify.

Sets the zarf_package_definition, zarf_package_name, zarf_package_version, zarf_package_flavor, and zarf_package_documentation facts.

zarf_package_documentation is the package’s documentation: mapping: documentation keys to paths inside the package’s own source tree. It is empty for a package that declares none. Reading the file one of them names is colonel_byte.zarf.zarf_package_documentation, and checking a cluster against a prerequisites key is the prerequisites role.

Every task carries run_once: true and delegates to zarf_delegate_to.

Variables

VariableTypeDefaultDescription
zarf_packagestr""The package source to inspect: a path to a staged tarball, an oci:// reference, or a deployed package name.
zarf_public_keystr""Path to the public key a package signature is verified against.
zarf_verifystr""When to verify the package signature. Left empty, the role requires a signature when zarf_public_key names a key, and leaves zarf’s own if-possible default alone when it does not. Set it explicitly to override. One of ``, never, if-possible, always.
zarf_kubeconfigstr""Path to the kubeconfig file, used when inspecting a deployed cluster package.
zarf_binarystrzarfPath to the zarf binary on the delegated host.
zarf_quietbooltrueWhether to suppress verbose assert output when asserting inputs.
zarf_delegate_tostrlocalhostThe node on which to execute the inspection.