Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.66 KB

openjdk_pkg_install.md

File metadata and controls

40 lines (28 loc) · 1.66 KB

openjdk_pkg_install

back to resource list

Introduced: v8.1.0

Actions

  • :install
  • :remove

Properties

Name Type Default Description
version String Java major version to install
pkg_names Array default_openjdk_pkg_names(version) List of packages to install
pkg_version String nil Package version to install
java_home String Based on the version Set to override the java_home
default Boolean true Whether to set this as the defalut Java
bin_cmds Array default_openjdk_bin_cmds(version) A list of bin_cmds based on the version and variant
alternatives_priority Integer 1062 Alternatives priority to set for this Java
reset_alternatives Boolean true Whether to reset alternatives before setting

Examples

To install OpenJDK 11 and set it as the default Java:

openjdk_pkg_install '11'

To install OpenJDK 11 and set it as second highest priority:

openjdk_pkg_install '11' do
  alternatives_priority 2
end