make it a lot easier to define any kind of configuration values#20
make it a lot easier to define any kind of configuration values#20duritong wants to merge 1 commit intojdowning:masterfrom
Conversation
So far one would have had to add for each configuration setting to set a dedicated parameter and add an ini_setting. This change introduces a simple hash structure to set configuration values. This hash matches the influxdb toml file structure. Unfortunately puppet doesn't yet have an easy way (puppetlabs/puppetlabs-inifile#129) to do things like that. Which means that I had to trick around a little bit with puppet data structures. This can be removed once create_ini_settings got merged into the inifile module, until then this is a workaround, that makes the configuration much more flexible.
|
Did you see #18 ? I was looking toward using a parameterized template moving forward. All values would have default values (as noted in the InfluxDB |
|
Yes I saw this, but why go with a clumsy template that one has to maintain, if it can be that "simple"? My problem with the template approach is that every time influxdb adds a new configuration parameter you need adapt either your template, the class parameters or both. Too much magic? |
|
Given that this was now merged in puppetlabs/puppetlabs-inifile#129 could we merge that one as well? |
|
This project is no longer maintained. I recommend you check out golja/influxdb for an updated Puppet module for InfluxDB. |
So far one would have had to add for each configuration setting
to set a dedicated parameter and add an ini_setting.
This change introduces a simple hash structure to set configuration
values. This hash matches the influxdb toml file structure.
Unfortunately puppet doesn't yet have an easy way
(puppetlabs/puppetlabs-inifile#129) to do
things like that. Which means that I had to trick around a little
bit with puppet data structures.
This can be removed once create_ini_settings got merged into the
inifile module, until then this is a workaround, that makes the
configuration much more flexible.