PUPPET-SCRIPT(8) | Puppet manual | PUPPET-SCRIPT(8) |
puppet-script - Run a puppet manifests as a script without compiling a catalog
Runs a puppet language script without compiling a catalog.
puppet script [-h|--help] [-V|--version] [-d|--debug] [-v|--verbose] [-e|--execute] [-l|--logdest syslog|eventlog|FILE|console] [--noop] file
This is a standalone puppet script runner tool; use it to run puppet code without compiling a catalog.
When provided with a modulepath, via command line or config file, puppet script can load functions, types, tasks and plans from modules.
Note that 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.
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'.
$ puppet script -l /tmp/manifest.log manifest.pp $ puppet script --modulepath=/root/dev/modules -e 'notice("hello world")'
Henrik Lindberg
Copyright (c) 2017 Puppet Inc., LLC Licensed under the Apache 2.0 License
March 2021 | Puppet, Inc. |