Age | Commit message (Collapse) | Author |
|
This commit adds the ability to ensure that lines are absent.
|
|
This commit converts value to a property so that it
can be managed and modified when a file already has
a value set.
It was previously treating the line creation state
the same as the update case, which is not in
alignment with Puppet's model.
|
|
In order to allow the provider to be a parent for
other providers, I have implemented the following
methods: section, setting, file_path, separator so
that they can be overridden by child providers and
decouple this provider from its type.
|
|
Cool, thanks!
|
|
Previously, the following stanza would fail as a result of the
ini_setting type not being able to parse spaces in setting values.
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.
|
|
|
|
cprice-puppet/feature/master/allow-override-of-separator-str
Allow overriding separator string between key/val pairs
|
|
For now, the key_val_separator is required to contain
exactly one '=' character. This commit simply validates
that that is the case.
|
|
This introduces a new parameter, 'key_val_separator', which
can be set in order to override the string that is used
as a separator between the key/value pair of a setting line.
The default is ' = ', but you could set the param to '=' if
you don't want to include whitespace in your settings file.
|
|
Added support for colons in section names
|
|
|
|
|
|
|
|
|
|
This commit does the following:
* Fixes a bug in ExternalIterator
* Adds support for a "global" section before the first named
section at the beginning of the INI file
* Improves test coverage
|
|
* Updated README
* Fixed a small bug that would be triggered if the file specified
by `path` didn't exist.
* Added a smoke test manifest
|
|
|
|
Updated Section/ Setting regex, fixed bug with empty files and updated provider to not care about variable type
|
|
|
|
characters. Fixed writing to file without any sections at all.
Fixed exists checking for variable type by always casting to string
and added all the tests for the above items.
|
|
Fix require paths
|
|
|
|
|
|
|
|
|