fuel-library/deployment/puppet/inifile
2013-01-11 14:09:25 +04:00
..
lib/puppet fix incorrect indentation parameters in ini_file provider 2012-11-27 17:30:39 +04:00
spec Update inifile module to 0.9.0 2012-11-14 18:33:51 +04:00
tests Minor fixes in inifile 2012-11-20 17:38:17 +04:00
.gitignore Ignore metadata.json 2013-01-11 14:09:25 +04:00
.project Add project files 2013-01-10 18:37:05 +04:00
CHANGELOG Update inifile module to 0.9.0 2012-11-14 18:33:51 +04:00
LICENSE Update inifile module to 0.9.0 2012-11-14 18:33:51 +04:00
Modulefile Update inifile module to 0.9.0 2012-11-14 18:33:51 +04:00
README.markdown Initial commit 2012-10-22 16:42:05 +04: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 "".