mmz-srf/puppet-fluentd — pull request #24 by AlexRRR (2014-05-26 09:01:28+00:00)
Title: Changes to template output regarding out_copy module.

Hello again!

While testing I noticed that the inclusion of servers inside an out_copy store definition was not working as expected, with this change you are able to define something like
````
$logger=[{ 'host' => 'logger-sample01', 'port' => '24224'},
{ 'host' => 'logger-example01', 'port' => '24224', 'standby' => ''} ]

fluentd::match { 'forward_to_logger':
configfile => 'sample_tail',
pattern => 'alocal',
type => 'copy',
config => [
{
'type' => 'forward',
'send_timeout' => '60s',
'recover_wait' => '10s',
'heartbeat_interval' => '1s',
'phi_threshold' => 8,
'hard_timeout' => '60s',
'flush_interval' => '5s',
'servers' => $logger,
},
{
'type' => 'stdout',
'output_type' => 'json',
}
],

}
```
- Hash loops on all templates are now all sorted to avoid changes with each puppet run.
- Allow for servers to be defined inside a out_copy store
- Format output of config file.
- Modify test to include servers inside an out_copy store

Cheers,

Alejandro