[chef] Problems with log stash cookbook and environment attributes


Chronological Thread 
  • From: Cassiano Leal < >
  • To: < >
  • Cc:
  • Subject: [chef] Problems with log stash cookbook and environment attributes
  • Date: Tue, 30 Jul 2013 17:10:17 -0300

I’m having trouble using the community logstash cookbook with environment parameters.


When it tries to create shipper.conf it fails here:


Chef::Mixin::Template::TemplateError (comparison of String with Chef::Node::ImmutableMash failed) on line #13:
 
11: }
12: <% else %>
13: <%= LogstashConf.section_to_str(node['logstash']['agent']['inputs']) %>
14: <% end -%>
15: }

The full stack trace and the environment JSON can be found here: https://gist.github.com/cassianoleal/6116305

I have successfully used this cookbook on another environment when setting [:logstash][:agent][:inputs] via node.override in a recipe. What’s wrong with this approach?

Cheers,
--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal


  • [chef] Problems with log stash cookbook and environment attributes, Cassiano Leal, 07/30/2013

Archive powered by MHonArc 2.6.16.

§