-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for current resources
- Loading branch information
Showing
9 changed files
with
145 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[back to resource list](https://github.com/sous-chefs/java#resources) | ||
|
||
# java_alternatives | ||
|
||
The `java_alternatives` resource uses `update-alternatives` command to set and unset command alternatives for various Java tools such as java, javac, etc. | ||
|
||
## Actions | ||
|
||
- `:set`: set alternatives for Java tools | ||
- `:unset`: unset alternatives for Java tools | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description | | ||
| -------------------- | ------------- | ------- | ---------------------------------------------------------------------------- | | ||
| `java_location` | `String` | | Java installation location | | ||
| `bin_cmds` | `String` | | Array of Java tool names to set or unset alternatives on | | ||
| `default` | `true, false` | `true` | Whether to set the Java tools as system default. Boolean, defaults to `true` | | ||
| `priority` | `Integer` | `1061` | Priority of the alternatives. Integer, defaults to `1061` | | ||
| `reset_alternatives` | `true, false` | `true` | Whether to reset alternatives before setting them | | ||
|
||
- `java_location`: Java installation location. | ||
- `bin_cmds`: . | ||
- `default`: . | ||
- `priority`: . | ||
|
||
## Examples | ||
|
||
```ruby | ||
java_alternatives "set java alternatives" do | ||
java_location '/usr/local/java' | ||
bin_cmds ["java", "javac"] | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[back to resource list](https://github.com/sous-chefs/java#resources) | ||
|
||
# java_certificate | ||
|
||
Java certificate simplifies adding certificates to a java keystore. | ||
It can also populate the keystore with a certificate retrieved from a given SSL end-point. | ||
|
||
## Actions | ||
|
||
- `:install`: installs a certificate. | ||
- `:remove`: removes a certificate. | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description | | ||
| ----------------- | ------ | --------------------------- | --------------------------------------------------------------------------------------- | | ||
| `java_home` | | node['java']['java_home'] | The java home directory | | ||
| `java_version` | | node['java']['jdk_version'] | The java version | | ||
| `keystore_path` | String | | Path to the keystore | | ||
| `keystore_passwd` | String | `changeit` | Password to the keystore | | ||
| `cert_alias` | String | | The alias of the certificate in the keystore. This defaults to the name of the resource | | ||
| `cert_data` | String | | The certificate data to install | | ||
| `cert_file` | String | | Path to a certificate file to install | | ||
| `ssl_endpoint` | String | | An SSL end-point from which to download the certificate | | ||
|
||
## Examples | ||
|
||
```ruby | ||
java_certificate 'java_certificate_ssl_endpoint' do | ||
ssl_endpoint 'google.com:443' | ||
java_version '8' | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[back to resource list](https://github.com/sous-chefs/java#resources) | ||
|
||
# java_jce | ||
|
||
`java_jce` installs the Java Cryptography Extension (JCE) policy files for a given Java installation. | ||
|
||
## Actions | ||
|
||
- `:install`: Installs the JCE policy files. | ||
|
||
## Properties | ||
|
||
| Name | Type | Default | Description | | ||
| -------------- | ------ | -------------------------------------------------------- | -------------------------------------------------------------------------- | | ||
| `jdk_version` | String | `node['java']['jdk_version']` | The Java version to install into | | ||
| `jce_url` | String | `node['java']['oracle']['jce'][jdk_version]['url']` | The URL for the JCE distribution | | ||
| `jce_checksum` | String | `node['java']['oracle']['jce'][jdk_version]['checksum']` | The checksum of the JCE distribution | | ||
| `jce_cookie` | String | `node['java']['oracle']['accept_oracle_download_terms']` | Indicates that you accept Oracle's EULA | | ||
| `jce_home` | String | `node['java']['oracle']['jce']['home']` | The location where JCE files will be decompressed for installation | | ||
| `java_home` | String | `node['java']['java_home']` | The location of the Java installation | | ||
| `principal` | String | `node['java']['windows']['owner']` | For Windows installations only, this determines the owner of the JCE files | | ||
|
||
## Examples | ||
|
||
``` ruby | ||
# Install the JCE for the default Java installation: | ||
java_jce 'Install the JCE files' | ||
|
||
# Install the JCE for a Java installation in /opt/tools/jdk8: | ||
java_jce 'Install the JCE files' do | ||
java_home '/opt/tools/jdk8' | ||
end | ||
|
||
# Install the JCE for a Java 8 installation in /opt/tools/java using a custom download location: | ||
java_jce 'Install the JCE files' do | ||
java_home '/opt/tools/java' | ||
jdk_version '8' | ||
jce_url 'https://artifacts/path/to/jce/policy.zip' | ||
jce_checksum 'deadbeefcafe...' | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
maintainer_email '[email protected]' | ||
license 'Apache-2.0' | ||
description 'Recipes and resources for installing Java and managing certificates' | ||
version '8.0.0' | ||
version '8.0.1' | ||
|
||
supports 'debian' | ||
supports 'ubuntu' | ||
|
@@ -14,13 +14,8 @@ | |
supports 'amazon' | ||
supports 'oracle' | ||
supports 'freebsd' | ||
supports 'windows' | ||
supports 'suse' | ||
supports 'opensuseleap' | ||
supports 'mac_os_x' | ||
|
||
depends 'homebrew' | ||
depends 'windows' | ||
|
||
source_url 'https://github.com/sous-chefs/java' | ||
issues_url 'https://github.com/sous-chefs/java/issues' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters