cprice-puppet/puppetlabs-inifile — pull request #15 by reidmv (2012-09-29 19:46:46+00:00)
Title: Allow values with spaces to be parsed and set

Previously, the following stanza would fail as a result of the ini_setting type not being able to parse spaces in setting values. Puppet would add a new line, `config_version = /etc/puppetlabs/puppet/config_version.sh`, on every run.

ini_setting { 'main_config_version':
ensure => present,
path => '/etc/puppetlabs/puppet/puppet.conf',
section => 'main',
setting => 'config_version',
value => '/etc/puppetlabs/puppet/config_version.sh $environment',
}

This commit modifes the SETTING_REGEX to account for spaces in setting values.