Man page - puppet-script(8)
Packages contains this manual
- puppet-apply(8)
- puppet-lookup(8)
- puppet-describe(8)
- puppet-doc(8)
- puppet-config(8)
- puppet.conf(5)
- puppet-report(8)
- puppet-generate(8)
- puppet-node(8)
- puppet-agent(8)
- puppet-epp(8)
- puppet-facts(8)
- puppet-plugin(8)
- puppet-script(8)
- puppet-ssl(8)
- puppet-catalog(8)
- puppet-help(8)
- puppet-device(8)
- puppet-filebucket(8)
- puppet-resource(8)
- puppet(8)
- puppet-module(8)
- puppet-parser(8)
apt-get install puppet-agent
Manual
PUPPET-SCRIPT
NAMESYNOPSIS
USAGE
DESCRIPTION
OPTIONS
EXAMPLE
AUTHOR
COPYRIGHT
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; 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.
OPTIONS
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ā.
--debug
Enable full debugging.
|
--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.
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. |
--execute
Execute a specific piece of Puppet code
--verbose
Print extra information.
EXAMPLE
$ puppet script
-l /tmp/manifest.log manifest.pp
$ puppet script --modulepath=/root/dev/modules -e
ānotice("hello world")ā
AUTHOR
Henrik Lindberg
COPYRIGHT
Copyright (c) 2017 Puppet Inc., LLC Licensed under the Apache 2.0 License