2025-03-14 21:59:59 -06:00
|
|
|
# puppet apply
|
|
|
|
|
|
|
|
|
|
> Apply Puppet manifests locally.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://github.com/puppetlabs/puppet/blob/main/references/man/apply.md>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Apply a manifest:
|
|
|
|
|
|
|
|
|
|
`puppet apply {{path/to/manifest}}`
|
|
|
|
|
|
|
|
|
|
- Execute puppet code:
|
|
|
|
|
|
|
|
|
|
`puppet apply --execute {{code}}`
|
|
|
|
|
|
|
|
|
|
- Use a specific module and hiera configuration file:
|
|
|
|
|
|
|
|
|
|
`puppet apply --modulepath {{path/to/directory}} --hiera_config {{path/to/file}} {{path/to/manifest}}`
|