PUPPET-MASTER(8)

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

πŸ’– PUPPET-MASTER πŸ’–

okay so bestie, welcome to puppet-master, section 8 of the Puppet manual πŸŽ€ this is the puppet master daemon and she is THE main character, fr fr πŸ‘‘


✨ NAME ✨

puppet-master β€” the puppet master daemon. that's her. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

The central puppet server. Functions as a certificate authority by default. no cap, she's the boss of certs right out of the box πŸ”₯


πŸ¦‹ USAGE πŸ¦‹

here's how you summon her:

puppet master [-D|--daemonize|--no-daemonize] [-d|--debug] [-h|--help]
[-l|--logdest syslog|FILE|console] [-v|--verbose] [-V|--version]
[--compile NODE-NAME]

🌈 DESCRIPTION 🌈

This command starts an instance of puppet master, running as a daemon and using Ruby's built-in Webrick webserver. yep, Webrick, she's built right into Ruby πŸ“

Puppet master can also be managed by other application servers; when this is the case, this executable is not used. so like, if another app server is running the show, you don't touch this one. she stays unbothered πŸ’…


πŸ’– OPTIONS πŸ’–

quick heads up before we dive in, and this part is important bestie: any Puppet setting that's valid in the configuration file is also a valid long argument. so for example, 'server' is a valid setting, which means you can pass '--server servername' as an argument. iconic, right? 😌

and boolean settings? they translate into '--setting' and '--no-setting' pairs. two for one deal ✨

See the configuration file documentation at https://puppet.com/docs/puppet/latest/configuration.html for the full list of acceptable settings. A commented list of all settings can also be generated by running puppet master with '--genconfig'. go peek if you're curious, she's not gatekeeping πŸ’œ

  • --daemonize β€” Send the process into the background. This is the default. (This is a Puppet setting, and can go in puppet.conf. Note the special 'no-' prefix for boolean settings on the command line.) she's an independent woman, she goes in the background by default 🫢
  • --no-daemonize β€” Do not send the process into the background. (This is a Puppet setting, and can go in puppet.conf. Note the special 'no-' prefix for boolean settings on the command line.) same deal, just the 'no-' flip, she stays right here in the foreground with you πŸ₯Ί
  • --debug β€” Enable full debugging. everything on, all the tea, no filter β˜•
  • --help β€” Print this help message. the classic "help me pls" move πŸ™ˆ
  • --logdest β€” Where to send log messages. Choose between 'syslog' (the POSIX syslog service), 'console', or the path to a log file. If debugging or verbosity is enabled, this defaults to 'console'. Otherwise, it defaults to 'syslog'. pick your destination bestie, she'll drop the logs wherever you tell her πŸŽ€

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. okay so this one's a little sneaky β€” the JSON is valid-ish but that closing bracket? not written for you. you gotta append it yourself or it's not valid JSON, periodt ⚠️

  • --masterport β€” The port on which to listen for traffic. The default port is 8140. (This is a Puppet setting, and can go in puppet.conf.) 8140 is her home address, she's not moving 🏠
  • --verbose β€” Enable verbosity. she will simply say more, and honestly? good for her πŸ’¬
  • --version β€” Print the puppet version number and exit. quick lil flex then she dips πŸ‘‹
  • --compile β€” Compile a catalogue and output it in JSON from the puppet master. Uses facts contained in the $vardir/yaml/ directory to compile the catalog. she pulls those facts straight out of $vardir/yaml/ and hands you a whole catalogue in JSON, slay πŸ“¦βœ¨

⭐ EXAMPLE ⭐

puppet master

that's it. that's the whole example. simple, clean, she ate πŸ’…


πŸ’€ DIAGNOSTICS πŸ’€

When running as a standalone daemon, puppet master accepts the following signals. she speaks signal, fluently 🧚

  • SIGHUP β€” Restart the puppet master server. the classic "on my way back, refreshed" moment ✨
  • SIGINT and SIGTERM β€” Shut down the puppet master server. she's logging off, don't take it personally 😭
  • SIGUSR2 β€” Close file descriptors for log files and reopen them. Used with logrotate. this is the logrotate bestie right here, she closes the fds and reopens them like nothing happened πŸ”„

πŸ‘‘ AUTHOR πŸ‘‘

Luke Kanies


Copyright (c) 2012 Puppet Inc., LLC Licensed under the Apache 2.0 License


and that's the whole page bestie!! πŸ’œ this one came from Puppet, Inc. and it's dated <b>May 2022</b> β€” she's been holding it down since then, no cap. go run her, she's ready 🫢✨

πŸ“¦ where this page comes from