Skip to content

westurner/sun-java-formula

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sun-java

Formula to set up and configure Java JREs and JDKs from a tarball archive sourced via URL.

Available states

sun-java

Downloads the tarball from the java:source_url configured as either a pillar or grain and will not do anything if source_url is omitted. Then unpacks the archive into java:prefix (defaults to /usr/share/java). Will use the alternatives system to link the installation to java_home. Please see the pillar.example for configuration.

An addition to allow easy use - places a java profile in /etc/profile.d - this way JAVA_HOME and the PATH are set correctly for all system users.

Tested on RedHat/CentOS 5.X or RedHat/CentOS 6.X, AmazonOS and Ubuntu.