rackspace-cookbooks / elkstack

Elasticsearch, logstash, and kibana stack
Other
81 stars 54 forks source link

Chef::Exceptions::ValidationFailed #181

Closed imewish closed 8 years ago

imewish commented 8 years ago

Hi I was trying to pass a variable to my logstash config template like this,

in recipe

logstash_config 'server' do
  action 'create'
  templates_cookbook node['logstash']['templates_cookbook']
  templates node['logstash']['config']['templates']
  variables (node['logstash']['config']['templates']['variables'])
  notifies :restart, "logstash_service[server]"
  end

in attribute

default['logstash']['config']['templates']['variables'] = {

input_udp_port: 5962

}

but when i converge in test kitchen im getting the following error,

screen shot 2016-09-23 at 5 57 56 pm

helps would be appreciated.