Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/boxen/puppet-java
Browse files Browse the repository at this point in the history
  • Loading branch information
cdegroot-ebay committed Oct 29, 2014
2 parents 6788b2e + 6b67fd7 commit c7f5d1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ include java

## Parameters

You can customise this module by configuring some optional class parameters. Usually you'd do this via Hiera, but you could also explicitly pass those parameters in puppet code like `class { 'java': $update_version => '42', }`.
You can customise this module by configuring some optional class parameters. Usually you'd do this via Hiera, but you could also explicitly pass those parameters in puppet code like `class { 'java': update_version => '42', }`.

* `update_version`: The 'update' part of the JRE/JDK version to install. For example, if you specify `51`, the module would install java 7u51
* `base_download_url`: A base path from which the JRE and JDK packages should be downloaded. For example, if you specify `https://myorg.example/dist/java`, this module would download the jre from `https://myorg.example/dist/java/jre-7u51-macosx-x64.dmg`.
Expand Down
4 changes: 4 additions & 0 deletions files/java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Invoke java with the $DYLD_LIBRARY_PATH set with the homebrew lib dir.
# This allows java to load native libraries installed via homebrew.

if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ]; then
DYLD_FALLBACK_LIBRARY_PATH="$HOME/lib:/usr/local/lib:/lib:/usr/lib"
fi

export DYLD_FALLBACK_LIBRARY_PATH="$BOXEN_HOME/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH"

if [ -x /usr/libexec/java_home ]; then
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# include java
class java (
$update_version = '51',
$update_version = '71',
$base_download_url = 'https://s3.amazonaws.com/boxen-downloads/java'
) {
include boxen::config
Expand Down

0 comments on commit c7f5d1b

Please sign in to comment.