Skip to content

Instantly share code, notes, and snippets.

@jeffbyrnes
Created December 17, 2014 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffbyrnes/adc37c4e69d0f68b0214 to your computer and use it in GitHub Desktop.
Save jeffbyrnes/adc37c4e69d0f68b0214 to your computer and use it in GitHub Desktop.
Java help for aman
# Cookbook Name:: java_manual
# Recipe:: default
#
# If you don't need to change the owner or the mode,
# just use the recursive attribute
directory '/opt/app/workload/installed_apps' do
recursive true
end
# This will install the specified flavor of Java, set the JAVA_HOME
# The installation of Java will be on the PATH
#
# The Java cookbook can be configured to install different
# flavors & versions of the JDK from standard locations,
# or to even use your own internal distribution,
# as well as to set the JAVA_HOME
#
# See:
# https://github.com/agileorbit-cookbooks/java/tree/v1.29.0 (better formatting of README)
# https://supermarket.chef.io/cookbooks/java (same code, just hosted on community site)
include_recipe 'java'
# Use log resource instead of print/puts/etc.
# to properly output to Chef's STDOUT/logging
log ENV['JAVA_HOME']
log ENV['PATH']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment