No description
Find a file
Dan Bode 5f71d7f0bd guard against nil indentation values
This commit is intended to resolves an issue where the indentation
value can be nil (which leads to a run time exception)

This occurrs in cases where a section is following by only one of more
comments.

The proposed fix is to guard against potential nil values where the
error occurs. This fix is idential to code used at line 125 of the same file.
2013-03-11 17:42:08 -07:00
lib/puppet guard against nil indentation values 2013-03-11 17:42:08 -07:00
spec guard against nil indentation values 2013-03-11 17:42:08 -07:00
tests Fix test to use correct key_val_parameter 2013-02-05 08:26:18 +00:00
CHANGELOG Update Modulefile/CHANGELOG ; final commit for v0.9.0 release 2012-11-02 12:45:11 -07:00
LICENSE Added license file w/Apache 2.0 license 2012-11-06 13:53:15 -08:00
Modulefile Update Modulefile/CHANGELOG ; final commit for v0.9.0 release 2012-11-02 12:45:11 -07:00
README.markdown Add CHANGELOG and update README; final commit for 0.0.2 release 2012-08-20 14:13:37 -07:00

INI-file module

This module provides resource types for use in managing INI-style configuration files. The main resource type is ini_setting, which is used to manage an individual setting in an INI file. Here's an example usage:

ini_setting { "sample setting":
  path    => '/tmp/foo.ini',
  section => 'foo',
  setting => 'foosetting',
  value   => 'FOO!',
  ensure  => present,
}

A few noteworthy features:

  • The module tries hard not to manipulate your file any more than it needs to. In most cases, it should leave the original whitespace, comments, ordering, etc. perfectly intact.
  • Supports comments starting with either '#' or ';'.
  • Will add missing sections if they don't exist.
  • Supports a "global" section (settings that go at the beginning of the file, before any named sections) by specifying a section name of "".