update README with java::oracle usage, notes. removed puppet/archive as dependency since it is only required for java::oracle.
This commit is contained in:
@@ -34,6 +34,22 @@ class { 'java':
|
|||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
The defined type `java::oracle` installs one or more versions of Oracle Java SE. `java::oracle` depends on [puppet/archive](https://github.com/voxpupuli/puppet-archive). By using `java::oracle` you agree to Oracle's licensing terms for Java SE.
|
||||||
|
|
||||||
|
~~~
|
||||||
|
java::oracle { 'jdk6' :
|
||||||
|
ensure => 'present',
|
||||||
|
version => '6',
|
||||||
|
java_se => 'jdk',
|
||||||
|
}
|
||||||
|
|
||||||
|
java::oracle { 'jdk8' :
|
||||||
|
ensure => 'present',
|
||||||
|
version => '8',
|
||||||
|
java_se => 'jdk',
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
||||||
##Reference
|
##Reference
|
||||||
|
|
||||||
###Classes
|
###Classes
|
||||||
@@ -48,6 +64,7 @@ class { 'java':
|
|||||||
|
|
||||||
* `java::params`: Builds a hash of jdk/jre packages for all compatible operating systems.
|
* `java::params`: Builds a hash of jdk/jre packages for all compatible operating systems.
|
||||||
|
|
||||||
|
|
||||||
####Parameters
|
####Parameters
|
||||||
The following parameters are available in `java`:
|
The following parameters are available in `java`:
|
||||||
|
|
||||||
@@ -71,6 +88,25 @@ Valid option: String. Default: undef.
|
|||||||
Sets the version of Java to install, if you want to ensure a particular version.
|
Sets the version of Java to install, if you want to ensure a particular version.
|
||||||
Valid options: 'present', 'installed', 'latest', or a string matching `/^[.+_0-9a-zA-Z:-]+$/`. Default: 'present'.
|
Valid options: 'present', 'installed', 'latest', or a string matching `/^[.+_0-9a-zA-Z:-]+$/`. Default: 'present'.
|
||||||
|
|
||||||
|
####Public defined types
|
||||||
|
|
||||||
|
* `java::oracle`: Installs specified version of Oracle Java SE. You may install multiple versions of Oracle Jave SE on the same node using this defined type.
|
||||||
|
|
||||||
|
####Parameters
|
||||||
|
|
||||||
|
The following parameters are available in `java::oracle`:
|
||||||
|
|
||||||
|
######`version`
|
||||||
|
Version of Java Standard Edition (SE) to install. 6, 7 or 8.
|
||||||
|
|
||||||
|
#####`java_se`
|
||||||
|
Type of Java SE to install, jdk or jre.
|
||||||
|
|
||||||
|
#####`ensure`
|
||||||
|
Install or remove the package.
|
||||||
|
|
||||||
|
#####`oracle_url`
|
||||||
|
Official Oracle URL to download the binaries from.
|
||||||
|
|
||||||
###Facts
|
###Facts
|
||||||
|
|
||||||
@@ -110,6 +146,9 @@ Sun Java is supported on:
|
|||||||
|
|
||||||
* Debian 6
|
* Debian 6
|
||||||
|
|
||||||
|
Oracle Java is supported on:
|
||||||
|
* CentOS 6
|
||||||
|
|
||||||
### A note to OpenBSD
|
### A note to OpenBSD
|
||||||
OpenBSD packages install Java JRE/JDK in a unique directory structure, not linking
|
OpenBSD packages install Java JRE/JDK in a unique directory structure, not linking
|
||||||
the binaries to a standard directory. Because of that, the path to this location
|
the binaries to a standard directory. Because of that, the path to this location
|
||||||
|
|||||||
@@ -88,6 +88,5 @@
|
|||||||
],
|
],
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0 < 5.0.0"},
|
{"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0 < 5.0.0"},
|
||||||
{"name":"puppet-community/puppet-archive","version_requirement":"0.3.0"}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user