Version information
released Jul 9th 2014
Start using this module
Add this module to your Puppetfile:
mod 'WhatsARanjit-puppetconfig', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
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.
Dependencies
- puppetlabs/inifile (>= 1.0.3)