Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 3.11 KB

corretto_install.md

File metadata and controls

44 lines (32 loc) · 3.11 KB

corretto_install

back to resource list

Introduced: v8.0.0

Actions

  • :install
  • :remove

Properties

Name Type Default Description
version String Java version to install
full_version String Used to configure the package directory, change this is the version installed by the package is no longer correct
url String default_corretto_url(version) The URL to download from
checksum String The checksum for the downloaded file
java_home String Based on the version Set to override the java_home
java_home_mode Integer, String 0755 The permission for the Java home directory
java_home_owner String root Owner of the Java Home
java_home_group String node['root_group'] Group for the Java Home
default Boolean true Whether to set this as the defalut Java
bin_cmds Array default_corretto_bin_cmds(version) A list of bin_cmds based on the version and variant
alternatives_priority Integer 1 Alternatives priority to set for this Java
reset_alternatives Boolean true Whether to reset alternatives before setting

Examples

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

corretto_install '11'

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

corretto_install '8' do
  alternatives_priority 2
end