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

NAME

6       puppet-generate - Generates Puppet code from Ruby definitions.
7

SYNOPSIS

9       puppet generate action
10

OPTIONS

12       Note  that any setting that´s valid in the configuration file is also a
13       valid long argument, although it may or may  not  be  relevant  to  the
14       present action. For example, server and run_mode are valid settings, so
15       you can specify --server <servername>, or --run_mode  <runmode>  as  an
16       argument.
17
18       See    the    configuration    file   documentation   at   https://pup
19       pet.com/docs/puppet/latest/configuration.html  for  the  full  list  of
20       acceptable  parameters.  A  commented list of all configuration options
21       can also be generated by running puppet with --genconfig.
22
23       --render-as FORMAT
24              The format in which to render output. The  most  common  formats
25              are  json, s (string), yaml, and console, but other options such
26              as dot are sometimes available.
27
28       --verbose
29              Whether to log verbosely.
30
31       --debug
32              Whether to log debug information.
33

ACTIONS

35       types - Generates Puppet code for custom types
36              SYNOPSIS
37
38              puppet generate types [--format format] [--force]
39
40              DESCRIPTION
41
42              Generates definitions for custom  resource  types  using  Puppet
43              code.
44
45              Types  defined in Puppet code can be used to isolate custom type
46              definitions between different environments.
47
48              OPTIONS --force - Forces the generation of output  files  (skips
49              up-to-date checks).
50
51              --format  <format>  -  The generation output format to use. Sup‐
52              ported formats: pcore.
53

EXAMPLES

55       types
56
57       Generate Puppet type definitions for all custom resource types  in  the
58       current environment:
59
60
61
62           $ puppet generate types
63
64
65
66       Generate  Puppet  type definitions for all custom resource types in the
67       specified environment:
68
69
70
71           $ puppet generate types --environment development
72
73
74
76       Copyright 2016 by Puppet Inc. Apache 2 license; see COPYING
77
78
79
80Puppet, Inc.                      April 2020                PUPPET-GENERATE(8)
Impressum