Forge Home

puppet_conf

Tasks that manipulates a puppet configuration file

156,653 downloads

6,255 latest version

4.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.0.0 (latest)
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.8.0
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.0
  • 0.3.1
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.5
  • 0.1.4
released Oct 11th 2017
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x
  • Puppet >= 5.1.0 < 6.0.0
  • , , ,
Tasks:
  • puppet_conf

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-puppet_conf', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-puppet_conf
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-puppet_conf --version 0.1.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/puppet_conf — version 0.1.4 Oct 11th 2017

puppet_conf

Table of Contents

  1. Description
  2. Requirements
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Getting help - Some Helpful commands

Description

This module provides the puppet_conf task. This task allows you to inspect and change the configuration options in the puppet.conf file.

Requirements

This module is compatible with Puppet Enterprise and Puppet Bolt.

  • To run tasks with Puppet Enterprise, PE 2017.3 or later must be installed on the machine from which you are running task commands. Machines receiving task requests must be Puppet agents.

  • To run tasks with Puppet Bolt, Bolt 0.5 or later must be installed on the machine from which you are running task commands. Machines receiving task requests must have SSH or WinRM services enabled.

Usage

To run a puppet_conf task, use the task command, specifying the action, section, and setting of the puppet.conf setting.

  • With PE on the command line, run puppet task run puppet_conf action=<ACTION> section=<SECTION> setting=<SETTING>.
  • With Bolt on the command line, run bolt task run puppet_conf action=<ACTION> section=<SECTION> setting=<SETTING>.

For example, to check the status of the agent graph setting in puppet.conf, run:

  • With PE, run puppet task run puppet_conf action=get section=agent setting=graph --nodes neptune
  • With Bolt, run bolt task run puppet_conf action=get section=agent setting=graph --nodes neptune --modules ~/modules

To set the value of the agent graph setting in puppet.conf, specify a value with the set action:

  • With PE, run puppet task run puppet_conf action=set section=agent setting=graph value=true --nodes neptune
  • With Bolt, run bolt task run puppet_conf action=set section=agent setting=graph value=true --nodes neptune --modules ~/modules

You can also run tasks in the PE console. See PE task documentation for complete information.

Reference

To view the available actions and parameters, on the command line, run puppet task show puppet_conf or see the puppet_conf module page on the Forge.

For a complete list of puppet.conf options, see the puppet.conf documentation.

Getting Help

To display help for the package task, run puppet task show puppet_conf

To show help for the task CLI, run puppet task run --help or bolt task run --help