Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after upgrading the cookbook #297

Closed
sashazykov opened this issue Feb 10, 2015 · 3 comments
Closed

Error after upgrading the cookbook #297

sashazykov opened this issue Feb 10, 2015 · 3 comments

Comments

@sashazykov
Copy link

My node don't have nginx attributes and I am getting an error:

Chef::Mixin::Template::TemplateError (undefined method `[]' for nil:NilClass) on line #56:

 54: <% end %>
 55: 
 56: <% if node.elasticsearch[:nginx][:ssl][:cert_file] && node.elasticsearch[:nginx][:ssl][:key_file] %>
 57:   ssl on;
 58:   ssl_certificate <%= node.elasticsearch[:nginx][:ssl][:cert_file] %>;
@jtomaszewski
Copy link

See #281 and #282 for a fix or workaround

@spuder
Copy link
Contributor

spuder commented Mar 10, 2015

If using a wrapper cookbook, one workaround is to add the following to your customize.rb or default.rb

normal[:elasticsearch][:nginx][:ssl][:cert_file] = nil
normal[:elasticsearch][:nginx][:ssl][:key_file] = nil

Or wait for a revision that includes this commit.

7bdaffc

@martinb3
Copy link
Contributor

martinb3 commented Jul 6, 2015

Hello! We've removed this functionality as part of a cookbook re-write, so this bug should no longer affect users. Please let us know if you encounter anything further with it. Thank you!

@martinb3 martinb3 closed this as completed Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants