forked from sous-chefs/java
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add starttls property to java_certificate resource
Signed-off-by: Joshua Colson <joshua.colson@gmail.com>
- Loading branch information
1 parent
7e7858c
commit 942d230
Showing
10 changed files
with
85 additions
and
8 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
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
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,14 @@ | ||
apt_update | ||
|
||
version = node['version'] | ||
variant = node['variant'] | ||
|
||
adoptopenjdk_install version do | ||
variant variant | ||
end | ||
|
||
cookbook_file '/tmp/UnlimitedSupportJCETest.jar' do | ||
source 'UnlimitedSupportJCETest.jar' | ||
end | ||
|
||
include_recipe 'test::java_cert' |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
corretto_install node['version'] | ||
|
||
include_recipe 'test::java_cert' |
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 |
---|---|---|
@@ -1,15 +1,31 @@ | ||
version = node['version'].to_s | ||
|
||
cookbook_file '/tmp/java_certificate_test.pem' do | ||
source 'java_certificate_test.pem' | ||
end | ||
|
||
java_certificate 'java_certificate_test' do | ||
cert_file '/tmp/java_certificate_test.pem' | ||
java_version version | ||
end | ||
|
||
java_certificate 'java_certificate_ssl_endpoint' do | ||
ssl_endpoint 'google.com:443' | ||
java_version version | ||
end | ||
|
||
java_certificate 'java_certificate_ssl_endpoint' do | ||
java_version version | ||
action :remove | ||
end | ||
|
||
java_certificate 'java_certificate_ssl_endpoint_starttls_smtp' do | ||
ssl_endpoint 'smtp.gmail.com:587' | ||
starttls 'smtp' | ||
java_version version | ||
end | ||
|
||
java_certificate 'java_certificate_ssl_endpoint_starttls_smtp' do | ||
java_version version | ||
action :remove | ||
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
openjdk_install node['version'] | ||
|
||
include_recipe 'test::java_cert' |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
openjdk_pkg_install node['version'] | ||
|
||
include_recipe 'test::java_cert' |