Closed tt-sergey closed 6 years ago
Currently I use '0.9.1' version of cookbook and it works.
Trying to migrate to '0.12.2' recipe fails with error:
No resource or method named logstash_instance' forChef::Recipe "server"'
logstash_instance' for
/var/chef/cache/cookbooks/logstash5/recipes/server.rb:17:in `from_file'
/var/chef/cache/cookbooks/logstash5/recipes/server.rb:
10: # 11: # 12: 13: # install logstash 'server' 14: 15: name = 'server' 16: 17>> logstash_instance name do 18: action :create 19: end 20: 21: logstash_service name do 22: action [:enable] 23: end 24: 25: logstash_config name do 26: action [:create]
x86_64-linux
Currently I use '0.9.1' version of cookbook and it works.
Trying to migrate to '0.12.2' recipe fails with error:
================================================================================ Recipe Compile Error in /var/chef/cache/cookbooks/logstash5/recipes/server.rb
NoMethodError
No resource or method named
logstash_instance' for
Chef::Recipe "server"'Cookbook Trace:
Relevant File Content:
/var/chef/cache/cookbooks/logstash5/recipes/server.rb:
10: # 11: # 12: 13: # install logstash 'server' 14: 15: name = 'server' 16: 17>> logstash_instance name do 18: action :create 19: end 20: 21: logstash_service name do 22: action [:enable] 23: end 24: 25: logstash_config name do 26: action [:create]
Platform:
x86_64-linux