PUPPET-KEY(8)

πŸ“¦
version 5.5.22 Β· 2 versions
, in ubuntu jammy

πŸ’– PUPPET-KEY πŸ’–

okay bestie, welcome to puppet-key β€” that's section 8 of the Puppet manual, so you know it's a command you run from the shell, not some library nonsense. She creates, saves, and removes certificate keys. That's the whole vibe. ✨


🌸 SYNOPSIS 🌸

puppet key action [--terminus _TERMINUS] [--extra HASH]

that's it, that's the shape of it. one action, and then some optional little garnish flags. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so this subcommand manages certificate private keys. literally its whole job. πŸ’…

and here's the tea: keys are created automatically by puppet agent, and also when certificate requests get generated with puppet certificate generate. so like… it should not be necessary to use this subcommand directly?? it's the backup plan, the emergency contact, the "i know a guy" of subcommands. 🫢


✨ OPTIONS ✨

first things first, a lil note before we get into it: any setting that's valid in the configuration file is also a valid long argument β€” even if it's lowkey irrelevant to whatever action you're doing right now. like, server and run_mode are valid settings, so you can totally pass --server <servername>, or --run_mode <runmode> as an argument. slay. πŸ’«

for the full list of acceptable parameters, go read the configuration file docs 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 it over. πŸ‘‘

  • --render-as FORMAT β€” the format your output gets rendered in. the most common formats are json, s (that's string, bestie), yaml, and console, but sometimes other options like dot show up too. pick your aesthetic. 🎨
  • --verbose β€” whether to log verbosely. do you want the whole story or just the highlights? πŸ—£οΈ
  • --debug β€” whether to log debug information. this is the "tell me EVERYTHING, i can handle it" setting. πŸ”
  • --extra HASH β€” so a terminus can take extra arguments to refine the operation, and those get passed as an arbitrary hash to the back-end. anything you pass as the extra value is just sent direct to the back-end. no filter, no middleman. πŸ“¬
  • --terminus _TERMINUS β€” okay this one's a whole paragraph, sit down.

indirector faces expose indirected subsystems of Puppet. each of these subsystems can retrieve and alter one specific type of data β€” using the familiar actions find, search, save, and destroy β€” from an arbitrary number of pluggable backends. and in Puppet parlance? those backends are called terminuses. periodt. πŸ’…

almost all indirected subsystems have a rest terminus that interacts with the puppet master's data. most of them also have additional terminuses for various local data models, which are in turn used by the indirected subsystem on the puppet master whenever it receives a remote request. πŸ›°οΈ

the terminus for an action is often determined by context, but occasionally you gotta set it explicitly. see the "Notes" section of this face's manpage for more details. iykyk. πŸŽ€


πŸ”₯ ACTIONS πŸ”₯

here's the lineup, bestie. five actions, each one an icon in her own right.

destroy β€” Delete an object.

SYNOPSIS

puppet key destroy [--terminus _TERMINUS] [--extra HASH] key

DESCRIPTION

Delete an object. that's it. gone. poof. πŸ«₯


find β€” Retrieve an object by name.

SYNOPSIS

puppet key find [--terminus _TERMINUS] [--extra HASH] [key]

DESCRIPTION

Retrieve an object by name. notice the key is in square brackets here β€” optional, bestie, she's flexible like that. πŸ™ˆ


info β€” Print the default terminus class for this face.

SYNOPSIS

puppet key info [--terminus _TERMINUS] [--extra HASH]

DESCRIPTION

Prints the default terminus class for this subcommand. important caveat tho: different run modes may have different default termini β€” so when in doubt, specify the run mode with the '--run_mode' option. don't get caught out. 😭


save β€” API only: create or overwrite an object.

SYNOPSIS

puppet key save [--terminus _TERMINUS] [--extra HASH] key

DESCRIPTION

API only: create or overwrite an object. and here's the sad part β€” as the Faces framework does not currently accept data from STDIN, save actions cannot currently be invoked from the command line. so it's API-only fr fr. we mourn. πŸ’€


search β€” Search for an object or retrieve multiple objects.

SYNOPSIS

puppet key search [--terminus _TERMINUS] [--extra HASH] query

DESCRIPTION

Search for an object or retrieve multiple objects. plural. she's a collector. 🌈


πŸ“ NOTES πŸ“

okay so this subcommand is an indirector face, which means it exposes find, search, save, and destroy actions for an indirected subsystem of Puppet. we love a framework moment. 🫢

valid termini for this face include:

  • ca
  • disabled_ca
  • file
  • memory

four options, all valid, all iconic. πŸ‘‘


Copyright 2011 by Puppet Inc. Apache 2 license; see COPYING


πŸ’– that's the whole page bestie!! go forth and manage those certificate keys (or, y'know, let puppet agent do it, because again β€” you're not supposed to need this) πŸ’–

stay slay, Puppet, Inc. β€” May 2022 β€” PUPPET-KEY(8) βœ¨πŸ’…πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from