Created
December 17, 2014 19:00
-
-
Save jeffbyrnes/adc37c4e69d0f68b0214 to your computer and use it in GitHub Desktop.
Java help for aman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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