PUPPET-SCRIPT(8)
💖 PUPPET-SCRIPT(8) 💖
okay so bestie, welcome to puppet-script from the puppet manual — she runs a puppet manifest as a script, no catalog compiling required. sit down, hydrate, let's go 🫶
✨ NAME ✨
puppet-script — run a puppet manifests as a script without compiling a catalog
🌸 SYNOPSIS 🌸
Runs a puppet language script without compiling a catalog.
🎀 USAGE 🎀
puppet script [-h|--help] [-V|--version] [-d|--debug] [-v|--verbose]
[-e|--execute] [-l|--logdest syslog|eventlog|FILE|console] [--noop] file
🦋 DESCRIPTION 🦋
This is a standalone puppet script runner tool, bestie. use it to run puppet code without compiling a catalog. that's the whole vibe. no catalog, just script, slay. 💅
When provided with a modulepath — whether that's via command line or config file — puppet script can load functions, types, tasks and plans from modules. iconic behavior honestly. 👑
✨ OPTIONS ✨
okay so real talk: any setting that´s valid in the configuration file is also a valid long argument. for example, ´environment´ is a valid setting, so you can specify ´--environment mytest´ as an argument. iykyk. 💖
See the configuration file documentation at https://puppet.com/docs/puppet/latest/configuration.html for the full list of acceptable parameters. a commented list of all configuration options can also be generated by running puppet with ´--genconfig´. periodt.
--debug— Enable full debugging. we love a verbose queen 🔥--help— Print this help message--logdest— Where to send log messages. Choose between ´syslog´ (the POSIX syslog service), ´eventlog´ (the Windows Event Log), ´console´, or the path to a log file. Defaults to ´console´. Multiple destinations can be set using a comma separated list (eg: /path/file1,console,/path/file2)"
A path ending with ´.json´ will 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. 😭 not the manual closing bracket, you gotta do it yourself bestie.
A path ending with ´.jsonl´ will receive structured output in JSON Lines format. 🍓
--noop— Use ´noop´ mode 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. Applies to tasks only.
bestie listen: this is dry-run. nothing actually changes. perfect for a vibe check before you commit to anything 🧚
--execute— Execute a specific piece of Puppet code--verbose— Print extra information. more words, more better ✨
🌈 EXAMPLE 🌈
$ puppet script -l /tmp/manifest.log manifest.pp
$ puppet script --modulepath=/root/dev/modules -e ´notice("hello world")´
literally just notice("hello world") and the whole terminal said hi back. main character energy fr fr 💜
💜 AUTHOR 💜
Henrik Lindberg
👑 COPYRIGHT 👑
Copyright (c) 2017 Puppet Inc., LLC Licensed under the Apache 2.0 License
and that's the whole page, bestie!! 🎀 this lil gem is brought to you by Puppet, Inc. and it's dated September 2024 — PUPPET-SCRIPT(8), that's a wrap, mwah 💖✨🦋
📦 where this page comes from
- arch rolling: puppet 8.10.0-6 · Apache-2.0
- 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
- nixos 26.05: puppet 8.10.0
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms