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

README recipe example for Oracle java is incorrect #160

Closed
jaygooby opened this issue Apr 9, 2014 · 3 comments
Closed

README recipe example for Oracle java is incorrect #160

jaygooby opened this issue Apr 9, 2014 · 3 comments

Comments

@jaygooby
Copy link

jaygooby commented Apr 9, 2014

run_list(
  "recipe[java]"
)

should be:

run_list(
  "recipe[java::oracle]"
)
@schplat
Copy link

schplat commented Apr 11, 2014

running recipe[java] will call include_recipe "java::#{node['java']['install_flavor']}"

so as long as you set ['java']['install_flavor'] to Oracle (as the README.md example does), java::oracle is run. In fact if you call java::oracle directly you get:

unless node.recipe?('java::default')
Chef::Log.warn("Using java::default instead is recommended.")

Mainly for the set_attributes_from_version recipe, however, the oracle recipe will call it just in case you do call java::oracle directly.

@jaygooby
Copy link
Author

Ah, OK. I was pretty sure that I'd set ['java']['install_flavor'] = 'oracle' but I am doing some funky stuff with environments: http://logikal.is/blog/2013/02/06/cleaner-chef-environments-with-ruby/ (and I'm on chef-solo) so it might be down to that.

@lock
Copy link

lock bot commented May 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants