Files
cheatsheet-tldr/tldr/puppet-apply
2025-04-24 00:19:06 +00:00

22 lines
513 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# puppet apply
> Apply Puppet manifests locally.
> More information: <https://github.com/puppetlabs/puppet/blob/main/references/man/apply.md>.
- 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}}`