1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 19:02:09 +02:00
tldr/pages/common/puppet-apply.md
Vitor Henrique af35564618
pages*: do not use config abbreviation (#12118)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-25 10:59:16 +05:30

397 B

puppet apply

Apply Puppet manifests locally. More information: https://puppet.com/docs/puppet/7/man/apply.html.

  • 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}}