On 10/14/2015 02:06 PM, Jakov Sosic wrote:

   # load configs from hiera
   $logstash_configs = hiera_hash('logstash::configfiles', undef)
   if ($logstash_configs) { create_resources(::Logstash::Configfile,
$logstash_configs) }
   $logstash_patterns = hiera_hash('logstash::patternfiles', undef)
   if ($logstash_patterns) { create_resources(::Logstash::Patternfile,
$logstash_patterns) }


And this is from hiera:

logstash::configfiles:
   'input_header':
     content: "input {\n"
     order:   11
   'input_postfix':
     template: 'helpers/logstash/inputs/mongodb.erb'
     order:   12

Ah, I only lowered case and it seems it works:


if ($logstash_configs) { create_resources(::logstash::configfile, $logstash_configs) }

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/561E4663.3080500%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to