Installs or reconfigures java.
Apache 2.0 License (http://www.apache.org/licenses/LICENSE-2.0)
Currently supported:
- Debian Systems (Debian, Ubuntu, ...)
- Java 1.6 and 1.7
- Vendor OpenJDK and Oracle
Features still to come:
- RedHat, Suse, Gentoo, Archlinux, Mandrake, Solaris
- Java 1.8
- install common java libraries
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 vendor
All how tos assume you started the development vm:
cd <path to project>
vagrant up
vagrant ssh
cd /vagrant
rm -fr modules/java/pkg/
puppet module build modules/java/
cd /vagrant
rake spec
BugFix-Release:
- fixes export bug
- fixes vagrant dependencies
- fixes requirements tests
Initial release:
- oracle vendor
- openjdk vendor
- java 1.6
- java 1.7
- debian os-family