|
| 1 | +# Reference |
| 2 | +<!-- DO NOT EDIT: This document was generated by Puppet Strings --> |
| 3 | + |
| 4 | +## Table of Contents |
| 5 | + |
| 6 | +**Classes** |
| 7 | + |
| 8 | +_Public Classes_ |
| 9 | + |
| 10 | +* [`java`](#java): This module manages the Java runtime package |
| 11 | + |
| 12 | +_Private Classes_ |
| 13 | + |
| 14 | +* `java::config`: |
| 15 | +* `java::params`: This class builds a hash of JDK/JRE packages and (for Debian) |
| 16 | +alternatives. For wheezy/precise, we provide Oracle JDK/JRE |
| 17 | +options, even though those are not in the package repositories. |
| 18 | + |
| 19 | +**Defined types** |
| 20 | + |
| 21 | +* [`java::oracle`](#javaoracle): Installs Oracle Java. By using this module you agree to the Oracle licensing |
| 22 | +agreement. |
| 23 | + |
| 24 | +## Classes |
| 25 | + |
| 26 | +### java |
| 27 | + |
| 28 | +This module manages the Java runtime package |
| 29 | + |
| 30 | +#### Parameters |
| 31 | + |
| 32 | +The following parameters are available in the `java` class. |
| 33 | + |
| 34 | +##### `distribution` |
| 35 | + |
| 36 | +Data type: `String` |
| 37 | + |
| 38 | +The java distribution to install. Can be one of "jdk" or "jre", |
| 39 | +or other platform-specific options where there are multiple |
| 40 | +implementations available (eg: OpenJDK vs Oracle JDK). |
| 41 | + |
| 42 | +Default value: 'jdk' |
| 43 | + |
| 44 | +##### `version` |
| 45 | + |
| 46 | +Data type: `Pattern[/present|installed|latest|^[.+_0-9a-zA-Z:~-]+$/]` |
| 47 | + |
| 48 | +The version of java to install. By default, this module simply ensures |
| 49 | +that java is present, and does not require a specific version. |
| 50 | + |
| 51 | +Default value: 'present' |
| 52 | + |
| 53 | +##### `package` |
| 54 | + |
| 55 | +Data type: `Optional[String]` |
| 56 | + |
| 57 | +The name of the java package. This is configurable in case a non-standard |
| 58 | +java package is desired. |
| 59 | + |
| 60 | +Default value: `undef` |
| 61 | + |
| 62 | +##### `package_options` |
| 63 | + |
| 64 | +Data type: `Optional[Array]` |
| 65 | + |
| 66 | +Array of strings to pass installation options to the 'package' Puppet resource. |
| 67 | +Options available depend on the 'package' provider for the target OS. |
| 68 | + |
| 69 | +Default value: `undef` |
| 70 | + |
| 71 | +##### `java_alternative` |
| 72 | + |
| 73 | +Data type: `Optional[String]` |
| 74 | + |
| 75 | +The name of the java alternative to use on Debian systems. |
| 76 | +"update-java-alternatives -l" will show which choices are available. |
| 77 | +If you specify a particular package, you will almost always also |
| 78 | +want to specify which java_alternative to choose. If you set |
| 79 | +this, you also need to set the path below. |
| 80 | + |
| 81 | +Default value: `undef` |
| 82 | + |
| 83 | +##### `java_alternative_path` |
| 84 | + |
| 85 | +Data type: `Optional[String]` |
| 86 | + |
| 87 | +The path to the "java" command on Debian systems. Since the |
| 88 | +alternatives system makes it difficult to verify which |
| 89 | +alternative is actually enabled, this is required to ensure the |
| 90 | +correct JVM is enabled. |
| 91 | + |
| 92 | +Default value: `undef` |
| 93 | + |
| 94 | +##### `java_home` |
| 95 | + |
| 96 | +Data type: `Optional[String]` |
| 97 | + |
| 98 | +The path to where the JRE is installed. This will be set as an |
| 99 | +environment variable. |
| 100 | + |
| 101 | +Default value: `undef` |
| 102 | + |
| 103 | +## Defined types |
| 104 | + |
| 105 | +### java::oracle |
| 106 | + |
| 107 | +Defined Type java::oracle |
| 108 | + |
| 109 | +Install one or more versions of Oracle Java. |
| 110 | + |
| 111 | +Uses the following to download the package and automatically accept |
| 112 | +the licensing terms: |
| 113 | +``` |
| 114 | +wget --no-cookies --no-check-certificate --header \ |
| 115 | +"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ |
| 116 | +"http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz" |
| 117 | +``` |
| 118 | + |
| 119 | +#### Parameters |
| 120 | + |
| 121 | +The following parameters are available in the `java::oracle` defined type. |
| 122 | + |
| 123 | +##### `ensure` |
| 124 | + |
| 125 | +Data type: `Any` |
| 126 | + |
| 127 | +Install or remove the package. |
| 128 | + |
| 129 | +Default value: 'present' |
| 130 | + |
| 131 | +##### `version` |
| 132 | + |
| 133 | +Data type: `Any` |
| 134 | + |
| 135 | +Version of Java to install, e.g. '7' or '8'. Default values for major and minor versions will be used. |
| 136 | + |
| 137 | +Default value: '8' |
| 138 | + |
| 139 | +##### `version_major` |
| 140 | + |
| 141 | +Data type: `Any` |
| 142 | + |
| 143 | +Major version which should be installed, e.g. '8u101'. Must be used together with version_minor. |
| 144 | + |
| 145 | +Default value: `undef` |
| 146 | + |
| 147 | +##### `version_minor` |
| 148 | + |
| 149 | +Data type: `Any` |
| 150 | + |
| 151 | +Minor version which should be installed, e.g. 'b12'. Must be used together with version_major. |
| 152 | + |
| 153 | +Default value: `undef` |
| 154 | + |
| 155 | +##### `java_se` |
| 156 | + |
| 157 | +Data type: `Any` |
| 158 | + |
| 159 | +Type of Java Standard Edition to install, jdk or jre. |
| 160 | + |
| 161 | +Default value: 'jdk' |
| 162 | + |
| 163 | +##### `oracle_url` |
| 164 | + |
| 165 | +Data type: `Any` |
| 166 | + |
| 167 | +Official Oracle URL to download binaries from. |
| 168 | + |
| 169 | +Default value: 'http://download.oracle.com/otn-pub/java/jdk/' |
| 170 | + |
| 171 | +##### `proxy_server` |
| 172 | + |
| 173 | +Data type: `Any` |
| 174 | + |
| 175 | +Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive) |
| 176 | + |
| 177 | +Default value: `undef` |
| 178 | + |
| 179 | +##### `proxy_type` |
| 180 | + |
| 181 | +Data type: `Any` |
| 182 | + |
| 183 | +Proxy server type (none|http|https|ftp). (passed to archive) |
| 184 | + |
| 185 | +Default value: `undef` |
| 186 | + |
| 187 | +##### `url` |
| 188 | + |
| 189 | +Data type: `Any` |
| 190 | + |
| 191 | +Full URL, including oracle_url, release_major, release_minor and package_name, to |
| 192 | +download the Oracle java_se installer. Originally present but not used, activated |
| 193 | +to workaround MODULES-5058. |
| 194 | + |
| 195 | +Default value: `undef` |
| 196 | + |
| 197 | +##### `url_hash` |
| 198 | + |
| 199 | +Data type: `Any` |
| 200 | + |
| 201 | +Directory hash used by the download.oracle.com site. This value is a 32 character string |
| 202 | +which is part of the file URL returned by the JDK download site. |
| 203 | + |
| 204 | +Default value: `undef` |
| 205 | + |
| 206 | +##### `jce` |
| 207 | + |
| 208 | +Data type: `Any` |
| 209 | + |
| 210 | +Install Oracles Java Cryptographic Extensions into the JRE or JDK |
| 211 | + |
| 212 | +Default value: `false` |
| 213 | + |
| 214 | +##### `basedir` |
| 215 | + |
| 216 | +Data type: `Any` |
| 217 | + |
| 218 | +Directory under which the installation will occur. If not set, defaults to |
| 219 | +/usr/lib/jvm for Debian and /usr/java for RedHat. |
| 220 | + |
| 221 | +Default value: `undef` |
| 222 | + |
| 223 | +##### `manage_basedir` |
| 224 | + |
| 225 | +Data type: `Any` |
| 226 | + |
| 227 | +Whether to manage the basedir directory. Defaults to false. |
| 228 | +Note: /usr/lib/jvm is managed for Debian by default, separate from this parameter. |
| 229 | + |
| 230 | +Default value: `false` |
| 231 | + |
| 232 | +##### `package_type` |
| 233 | + |
| 234 | +Data type: `Any` |
| 235 | + |
| 236 | +Type of installation package for specified version of java_se. java_se 6 comes |
| 237 | +in a few installation package flavors and we need to account for them. |
| 238 | +Optional forced package types: rpm, rpmbin, tar.gz |
| 239 | + |
| 240 | +Default value: `undef` |
| 241 | + |
| 242 | +##### `manage_symlink` |
| 243 | + |
| 244 | +Data type: `Any` |
| 245 | + |
| 246 | +Whether to manage a symlink that points to the installation directory. Defaults to false. |
| 247 | + |
| 248 | +Default value: `false` |
| 249 | + |
| 250 | +##### `symlink_name` |
| 251 | + |
| 252 | +Data type: `Any` |
| 253 | + |
| 254 | +The name for the optional symlink in the installation directory. |
| 255 | + |
| 256 | +Default value: `undef` |
| 257 | + |
0 commit comments