PUPPET-CONFIG(8)
β¨ NAME β¨
puppet-config β it's the Puppet manual girlie (section 8, iykyk) that lets you interact with Puppet's settings π
πΈ SYNOPSIS πΈ
puppet config action [--section SECTION_NAME]
π¦ DESCRIPTION π¦
okay so bestie, this subcommand can inspect and modify settings straight out of Puppet's puppet.conf configuration file β¨
and like, for the actual documentation about individual settings, go look at https://puppet.com/docs/puppet/latest/configuration.html π
π OPTIONS π
heads up bestie: any setting that's valid in the configuration file is also a valid long argument, even if it may or may not be relevant to the present action. for example,serverandrun_modeare valid settings, so you can specify--server <servername>, or--run_mode <runmode>as an argument π
see the configuration file documentation at https://puppet.com/docs/puppet/latest/configuration.html for the full list of acceptable parameters π and ngl, a commented list of all configuration options can also be generated by running puppet with --genconfig β
--render-as FORMATβ the format in which to render output β¨ the most common formats arejson,s(string),yaml, andconsole, but other options such asdotare sometimes available π--verboseβ whether to log verbosely π£οΈ--debugβ whether to log debug information π--section SECTION_NAMEβ the section of thepuppet.confconfiguration file to interact with π«
the three most commonly used sections are main, server, and agent π«Ά main is the default, and is used by all Puppet applications. other sections can override main values for specific applications --- the server section affects Puppet Server, and the agent section affects puppet agent π
less commonly used is the user section, which affects puppet apply π§ any other section will be treated as the name of a legacy environment (a deprecated feature), and can only include the manifest and modulepath settings π
π ACTIONS π
π delete β Delete a Puppet setting π
SYNOPSIS
puppet config delete [--section SECTION_NAME] setting
DESCRIPTION
deletes a setting from the specified section ποΈ (the default is the section main) β¨
NOTES
by default, this action deletes the configuration setting from the main configuration domain π use the --section flags to delete settings from other configuration domains π
π print β Examine Puppet's current settings π
SYNOPSIS
puppet config print [--section SECTION_NAME] all | setting
[setting ...]
DESCRIPTION
prints the value of a single setting or a list of settings π
this action is a replacement interface to the information available with puppet <subcommand> --configprint π
NOTES
by default, this action reads the general configuration in the main section π«Ά use the --section and --environment flags to examine other configuration domains π
π set β Set Puppet's settings π
SYNOPSIS
puppet config set [--section SECTION_NAME] [setting_name]
[setting_value]
DESCRIPTION
updates values in the puppet.conf configuration file βοΈ
NOTES
by default, this action manipulates the configuration in the main section π« use the --section flag to manipulate other configuration domains π
π EXAMPLES π
delete
delete the setting setting_name from the main configuration domain:
$ puppet config delete setting_name
delete the setting setting_name from the server configuration domain:
$ puppet config delete setting_name --section server
get puppet's runfile directory:
$ puppet config print rundir
get a list of important directories from the server's config:
$ puppet config print all --section server | grep -E "(path|dir)"
set
set puppet's runfile directory:
$ puppet config set rundir /var/run/puppetlabs
set the vardir for only the agent:
$ puppet config set vardir /var/lib/puppet --section agent
π COPYRIGHT AND LICENSE π
Copyright 2011 by Puppet Inc. Apache 2 license; see COPYING π
and that's a wrap bestie β¨ this lil masterpiece came to you from Puppet, Inc., dated September 2024 π no cap, go forth and configure π¦π
π¦ where this page comes from
- fedora 43: puppet 8.10.0-2.fc43 Β· Apache-2.0
- fedora 43: puppet 8.10.0-3.fc43 Β· Apache-2.0
- fedora 44: puppet 8.10.0-4.fc44 Β· Apache-2.0
- fedora 44: puppet 8.10.0-5.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms