rackspace-cookbooks/elkstack

Chef::Exceptions::ValidationFailed

imewish opened this issue · 0 comments

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.