Forge Home


This module manages the entries in puppet.conf.


8,338 latest version

3.3 quality score

Version information

  • 0.1.0 (latest)
released Jul 9th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'WhatsARanjit-puppetconfig', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add WhatsARanjit-puppetconfig
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install WhatsARanjit-puppetconfig --version 0.1.0

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.



WhatsARanjit/puppetconfig — version 0.1.0 Jul 9th 2014

PuppetConfig Module


This will create and manage configurations in puppet.conf.


Installalation includes:

  • Main stanza
  • Master stanza
  • Agent stanza
  • Create any new stanza with values


  • Puppetlabs/inifile module to use the ini_setting type.

PuppetConfig parameters

See Puppet documentation for variable definitions.

  • config Default: /etc/puppetlabs/puppet/puppet.conf

Example Usage

Install puppet:

include ::puppetconfig::main
include ::puppetconfig::master
include ::puppetconfig::agent

Install puppetconfig::main with custom parameters:

class { '::puppetconfig::main':
  modulepath   => '/opt/modules',
  archive_file => false,

Create a new stanza with values:

define ::puppetconfig::config { 'test manifests':
  section => 'test',
  setting => 'manifests',
  value   => '/home/foo/manifests/site.pp',
define ::puppetconfig::config { 'test modulepath':
  section => 'test',
  setting => 'modulepath',
  value   => '/home/foo/modules',

A Word

There are ::puppetconfig::generate::{main,master,agent}ini classes in this module. Basically they were used to generate the text for their respective classes. They are NOT to be included or classified to a node.