Permalink
Browse files

Support custom configurations

  • Loading branch information...
1 parent acef52d commit 27fb0c139dab9371b1d465ec1ce114ab9ec4c863 @thorstadt committed Aug 13, 2012
Showing with 8 additions and 2 deletions.
  1. +1 −0 attributes/default.rb
  2. +2 −1 recipes/default.rb
  3. +5 −1 templates/default/storm.yaml.erb
@@ -24,3 +24,4 @@
default[:storm][:nimbus_host] = "localhost"
default[:storm][:java_lib_path] = nil
default[:storm][:supervisor_ports] = nil
+default[:storm][:custom_config] = {}
View
@@ -45,6 +45,7 @@
:zookeeper_servers => node[:storm][:zookeeper_servers],
:nimbus_host => node[:storm][:nimbus_host],
:java_lib_path => node[:storm][:java_lib_path],
- :supervisor_ports => node[:storm][:supervisor_ports]
+ :supervisor_ports => node[:storm][:supervisor_ports],
+ :custom_config => node[:storm][:custom_config]
})
end
@@ -36,4 +36,8 @@ supervisor.slots.ports:
java.library.path: "<%= @java_lib_path %>"
<% end %>
-
+<% if @custom_config %>
+<% @custom_config.each do |k, v| %>
+<%= k %>: <%= if v.kind_of? then String "\"#{v}\"" else v end %>
+<% end %>
+<% end %>

0 comments on commit 27fb0c1

Please sign in to comment.