PUPPET-APPLY(8)
π PUPPET-APPLY(8) β the Puppet manual, but make it slay β¨
okay bestie, so this is puppet-apply from the Puppet manual (section 8, we're fancy like that) π
πΈ NAME πΈ
puppet-apply β apply Puppet manifests locally, like right here, on this very machine, no master required π«Ά
β¨ SYNOPSIS β¨
Applies a standalone Puppet manifest to the local system. That's it. That's the whole vibe. π
π¦ USAGE π¦
puppet apply [-h|--help] [-V|--version] [-d|--debug] [-v|--verbose]
[-e|--execute] [--detailed-exitcodes] [-L|--loadclasses] [-l|--logdest
syslog|eventlog|ABS FILEPATH|console] [--noop] [--catalog catalog]
[--write-catalog-summary] file
look at her. iconic. π
π DESCRIPTION π
This is the standalone puppet execution tool, bestie. You use it to apply individual manifests, one at a time, no middleman, no drama.
When you give it a modulepath β whether that's via the command line or via a config file β puppet apply can effectively mimic the catalog that puppet master would serve, as long as it has access to the same modules. although there are some subtle differences β no cap, subtle but real. And when you pair it up with scheduling and some automated system for pushing manifests? boom π₯ you've got yourself a whole serverless Puppet site. main character energy fr.
Most users should usepuppet agentandpuppet masterfor site-wide manifests. Like, for real. This is the solo-quest tool, not the whole-party tool. π
π OPTIONS π
okay so first things first: any setting that's valid in the configuration file is a valid long argument for puppet apply. For example, tags is a valid setting, so you can just go --tags class,tag as an argument. cute, right?
See the configuration file documentation at https://puppet.com/docs/puppet/latest/configuration.html for the full list of acceptable parameters. And if you want the whole menu, you can generate a commented list of all configuration options by running puppet with --genconfig. obsessed. π
--debugβ Enable full debugging. she's loud, she's thorough, she's telling you everything π--detailed-exitcodesβ Provide extra information about the run via exit codes. If you enable this,puppet applywill use these exit codes:0: The run succeeded with no changes or failures; the system was already in the desired state. (iconic, nothing to do, we love a no-op win β¨)1: The run failed. π2: The run succeeded, and some resources were changed. π₯4: The run succeeded, and some resources failed. π6: The run succeeded, and included both changes and failures. both?? at the same time?? the duality π¦
--helpβ Print this help message. hi bestie π--loadclassesβ Load any stored classes.puppet agentcaches configured classes (usually at/etc/puppet/classes.txt), and setting this option causes all of those classes to be set in your puppet manifest. it's giving "bring the whole group chat" π«Ά--logdestβ Where to send log messages. Choose betweensyslog(the POSIX syslog service),eventlog(the Windows Event Log),console, or the path to a log file. Defaults toconsole. Multiple destinations can be set using a comma separated list (eg:/path/file1,console,/path/file2)- A path ending with
.jsonwill receive structured output in JSON format. The log file will not have an ending]automatically written to it due to the appending nature of logging. It must be appended manually to make the content valid JSON. (yes, manually. she will not do it for you. π) - A path ending with
.jsonlwill receive structured output in JSON Lines format. slay π
- A path ending with
--noopβ Usenoopmode where Puppet runs in a no-op or dry-run mode. This is useful for seeing what changes Puppet will make without actually executing the changes. peek before you leap, bestie π--executeβ Execute a specific piece of Puppet code. one-liner moment β--testβ Enable the most common options used for testing. These areverbose,detailed-exitcodesandshow_diff. the starter pack π--verboseβ Print extra information. yapper mode: on π£οΈ--catalogβ Apply a JSON catalog (such as one generated withpuppet master --compile). You can either specify a JSON file or pipe in JSON from standard input. π§--write-catalog-summaryβ After compiling the catalog saves the resource list and classes list to the node in the state directory namedclasses.txtandresources.txt. receipts, saved, permanently π
π EXAMPLE π
$ puppet apply -e Β΄notify { "hello world": }Β΄
$ puppet apply -l /tmp/manifest.log manifest.pp
$ puppet apply --modulepath=/root/dev/modules -e "include ntpd::server"
$ puppet apply --catalog catalog.json
look at those. four little lines. each one a whole mood. πΈ
π AUTHOR π
Luke Kanies π
β COPYRIGHT β
Copyright (c) 2011 Puppet Inc., LLC Licensed under the Apache 2.0 License
and that's the whole page, bestie β go forth and apply some manifests responsibly π
okay so real talk, this was puppet apply, brought to you by Puppet, Inc., and this lil manual page is dated September 2024. mwah, periodt. π
β¨π¦
π¦ where this page comes from
- fedora 43: puppet 8.10.0-2.fc43 Β· Apache-2.0
- fedora 43: puppet 8.10.0-3.fc43 Β· Apache-2.0
- fedora 44: puppet 8.10.0-4.fc44 Β· Apache-2.0
- fedora 44: puppet 8.10.0-5.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms