Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.07 KB

README.md

File metadata and controls

42 lines (35 loc) · 1.07 KB

jpuppet-java

Installs or reconfigures java.

Build Status

License

Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)

Usage

  class { "java":
    version        => "1.7",
    jdk            => true,
    jre            => true,
    sources        => true,
    javadoc        => true,
    set_as_default => false,
    export_path    => false,
    vendor         => "oracle",
  }
  • version
    • the java version ("1.7", "1.6")
  • jdk
    • ensures the developer kit
  • jre
    • ensures the runtime kit
  • sources
    • ensures sources
  • javadoc
    • ensures javadoc
  • set_as_default
    • ensures that the java version is set as default when typing "java"
  • export_path
    • ensures the export of the JAVA_HOME and JRE_HOME variable
  • vendor
    • determines which JVM to install ("openjdk", "oracle")
    • Note that you automatically agree to oracles license if you choose oracle as vandor