1PUPPET-SCRIPT(8)                 Puppet manual                PUPPET-SCRIPT(8)
2
3
4

NAME

6       puppet-script  - Run a puppet manifests as a script without compiling a
7       catalog
8

SYNOPSIS

10       Runs a puppet language script without compiling a catalog.
11

USAGE

13       puppet script [-h|--help]  [-V|--version]  [-d|--debug]  [-v|--verbose]
14       [-e|--execute]   [-l|--logdest  syslog|eventlog|FILE|console]  [--noop]
15       file
16

DESCRIPTION

18       This is a standalone puppet script runner tool; use it  to  run  puppet
19       code without compiling a catalog.
20
21       When  provided with a modulepath, via command line or config file, pup‐
22       pet script can load functions, types, tasks and plans from modules.
23

OPTIONS

25       Note that any setting that´s valid in the configuration file is also  a
26       valid  long argument. For example, ´environment´ is a valid setting, so
27       you can specify ´--environment mytest´ as an argument.
28
29       See   the   configuration   file    documentation    at    https://pup
30       pet.com/docs/puppet/latest/configuration.html  for  the  full  list  of
31       acceptable parameters. A commented list of  all  configuration  options
32       can also be generated by running puppet with ´--genconfig´.
33
34       --debug
35              Enable full debugging.
36
37       --help Print this help message
38
39       --logdest
40              Where  to  send log messages. Choose between ´syslog´ (the POSIX
41              syslog service), ´eventlog´ (the Windows Event Log),  ´console´,
42              or the path to a log file. Defaults to ´console´.
43
44              A  path  ending  with  ´.json´ will receive structured output in
45              JSON format. The log file will not have an ending ´]´  automati‐
46              cally  written  to it due to the appending nature of logging. It
47              must be appended manually to make the content valid JSON.
48
49       --noop Use ´noop´ mode where Puppet runs in a no-op  or  dry-run  mode.
50              This  is useful for seeing what changes Puppet will make without
51              actually executing the changes. Applies to tasks only.
52
53       --execute
54              Execute a specific piece of Puppet code
55
56       --verbose
57              Print extra information.
58

EXAMPLE

60       $ puppet script -l /tmp/manifest.log manifest.pp
61       $ puppet script --modulepath=/root/dev/modules -e ´notice("hello world")´
62

AUTHOR

64       Henrik Lindberg
65
67       Copyright (c) 2017 Puppet Inc.,  LLC  Licensed  under  the  Apache  2.0
68       License
69
70
71
72Puppet, Inc.                      April 2020                  PUPPET-SCRIPT(8)
Impressum