chef - Having an error regarding a node basedir while installing a ELKstack cookbook -
chef - Having an error regarding a node basedir while installing a ELKstack cookbook -
my chef-client run fails finish running recipe on test node. gives error upon failure; here final output on ubuntu workstation:
recipe compile error in /var/chef/cache/cookbooks/elkstack/recipes/single.rb undefined method `[]' nil:nilclass /var/chef/cache/cookbooks/elkstack/recipes/logstash.rb:22:in 'from_file' /var/chef/cache/cookbooks/elkstack/recipes/single.rb:14:in 'from_file'
this line causing error, i'm not sure start in troubleshooting attribute:
>> directory node['logstash']['instance_default']['basedir'] owner node['logstash']['instance_default']['user'] grouping node['logstash']['instance_default']['group'] mode '0755' end
that error means either node['logstash']
or node['logstash']['instance_default']
not set. in ruby, when request non-existent key hash nil. kind of thing should have defaults set in cookbook's attributes file. check dependencies correct.
chef logstash
Comments
Post a Comment