Man page - puppet-config(8)
Packages contains this manual
- puppet-apply(8)
- puppet-lookup(8)
- puppet-describe(8)
- puppet-doc(8)
- puppet-config(8)
- puppet.conf(5)
- puppet-report(8)
- puppet-generate(8)
- puppet-node(8)
- puppet-agent(8)
- puppet-epp(8)
- puppet-facts(8)
- puppet-plugin(8)
- puppet-script(8)
- puppet-ssl(8)
- puppet-catalog(8)
- puppet-help(8)
- puppet-device(8)
- puppet-filebucket(8)
- puppet-resource(8)
- puppet(8)
- puppet-module(8)
- puppet-parser(8)
apt-get install puppet-agent
Manual
PUPPET-CONFIG
NAMESYNOPSIS
DESCRIPTION
OPTIONS
ACTIONS
EXAMPLES
COPYRIGHT AND LICENSE
NAME
puppet-config - Interact with Puppetās settings.
SYNOPSIS
puppet config action [--section SECTION_NAME]
DESCRIPTION
This subcommand can inspect and modify settings from Puppetās āpuppet.confā configuration file. For documentation about individual settings, see https://puppet.com/docs/puppet/latest/configuration.html.
OPTIONS
Note that any setting thatās valid in the configuration file is also a valid long argument, although it may or may not be relevant to the present action. For example, server and run_mode are 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. 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 are json , s (string), yaml , and console , but other options such as dot are sometimes available.
--verbose
Whether to log verbosely.
--debug
Whether to log debug information.
--section SECTION_NAME
The section of the puppet.conf configuration 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 /opt/puppetlabs/puppet/cache --section agent
COPYRIGHT AND LICENSE
Copyright 2011 by Puppet Inc. Apache 2 license; see COPYING