Forge Home

puppetconfig

This module manages the entries in puppet.conf.

8,594 downloads

8,594 latest version

3.3 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

  • 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.

Download

Documentation

WhatsARanjit/puppetconfig — version 0.1.0 Jul 9th 2014

PuppetConfig Module

Overview

This will create and manage configurations in puppet.conf.

Capabilities

Installalation includes:

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

Requires:

  • Puppetlabs/inifile module to use the ini_setting type.

PuppetConfig parameters

See Puppet documentation for variable definitions. http://docs.puppetlabs.com/references/latest/configuration.html

  • 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.