PUPPET-GENERATE(8)

✨ NAME ✨

okay so this is puppet-generate β€” it Generates Puppet code from Ruby definitions. bestie, it's literally a code printer πŸ’…

🌸 SYNOPSIS 🌸

puppet generate action

πŸŽ€ OPTIONS πŸŽ€

heads up bestie 🫢 any setting thatΒ΄s valid in the configuration file is ALSO a valid long argument β€” like, it may or may not be relevant to the present action, but it's valid. for example, server and run_mode are valid settings, so you can specify --server <servername>, or --run_mode <runmode> as an argument. no cap.

the full list of acceptable parameters lives in the configuration file documentation at https://puppet.com/docs/puppet/latest/configuration.html β€” and if you want a commented list of ALL the configuration options, just run puppet with --genconfig and it'll hand them over. iconic.

  • --render-as FORMAT β€” the format in which to render output. the most common formats are json, s (string), yaml, and console, but other options such as dot are sometimes available. vibe check on your format before you commit, fr fr
  • --verbose β€” whether to log verbosely. yes literally, that's it.
  • --debug β€” whether to log debug information. for when you need the deep lore πŸ‘‘

πŸ‘‘ ACTIONS πŸ‘‘

πŸ¦‹ types β€” Generates Puppet code for custom types

SYNOPSIS

puppet generate types [--format format] [--force]

DESCRIPTION

Generates definitions for custom resource types using Puppet code. ✨

types defined in Puppet code can be used to isolate custom type definitions between different environments. it's giving organizational excellence 🧚

OPTIONS

  • --force β€” forces the generation of output files (it skips the up-to-date checks, so it's gonna regenerate even if it thinks nothing changed πŸ’€).
  • --format <format> β€” the generation output format to use. supported formats: pcore.

πŸ’– EXAMPLES πŸ’–

types

generate Puppet type definitions for all custom resource types in the current environment:

$ puppet generate types

generate Puppet type definitions for all custom resource types in the specified environment:

$ puppet generate types --environment development

Copyright 2016 by Puppet Inc. Apache 2 license; see COPYING. respect the license bestie, it's the law (literally) 🫢


and that's the whole page!! this lil legend is from the Puppet manual by Puppet, Inc., dated September 2024, and it answers to the name PUPPET-GENERATE(8). slay, go generate some code, mwah πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from