Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #35 from vrivellino/vince/12.0.1
Browse files Browse the repository at this point in the history
Java 12.0.1
  • Loading branch information
vrivellino committed Apr 23, 2019
2 parents 06ee9e1 + e170def commit 8d582bb
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .kitchen.ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ driver:
tag: Name
value: test-kitchen
associate_public_ip: true
instance_initiated_shutdown_behavior: terminate
user_data: kitchen-ec2-user-data.sh

provisioner:
name: chef_solo
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 12.0.1000 2019-04-22
- Java 12.0.1

## 11.0.2000 2019-03-14
- Change cookbook versioning scheme [#31]

Expand Down
16 changes: 8 additions & 8 deletions attributes/bind.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# https://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz
default['java_se']['release'] = '11.0.2'
default['java_se']['build'] = '9'
default['java_se']['hash'] = 'f51449fcd52f4d52b93a989c5c56ed3c'
# https://download.oracle.com/otn-pub/java/jdk/12.0.1+12/69cfe15208a647278a19ef0990eea691/jdk-12.0.1_linux-x64_bin.tar.gz
default['java_se']['release'] = '12.0.1'
default['java_se']['build'] = '12'
default['java_se']['hash'] = '69cfe15208a647278a19ef0990eea691'

# https://www.oracle.com/webfolder/s/digest/11-0-2-checksum.html
default['java_se']['sha256']['tar'] = '7b4fd8ffcf53e9ff699d964a80e4abf9706b5bdb5644a765c2b96f99e3a2cdc8'
default['java_se']['sha256']['dmg'] = '466935684e8772b8fdd9884fc24f7c342909abfc5aff07c908d248026edee737'
default['java_se']['sha256']['exe'] = 'c808bcf758f36ebfae1513a7f326d0747e48044ee55831fbf0e12cbfc18b3950'
# https://www.oracle.com/webfolder/s/digest/12-0-1-checksum.html
default['java_se']['sha256']['tar'] = '9fd6dcdaf2cfca7da59e39b009a0f5bcd53bec2fb16105f7ca8d689cdab68d75'
default['java_se']['sha256']['dmg'] = 'cf96dc630cd8efa60b2aa8b12d0092a09a2cd4d99567b330cbe0250206bf29ea'
default['java_se']['sha256']['exe'] = '865c1d3b92e64a53f9f2e99c2a4c6af25a99ebc70c09a52c7d0df42dc5b31876'
4 changes: 4 additions & 0 deletions kitchen-ec2-user-data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo 'Instance will automatically shutdown in 2 hours'
set -e
(( sleep 7200 && /sbin/shutdown -h now ) > /dev/null 2>&1 < /dev/null & )
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
source_url 'https://github.com/vrivellino/chef-java_se' if respond_to?(:source_url)
issues_url 'https://github.com/vrivellino/chef-java_se/issues' if respond_to?(:issues_url)
chef_version '>= 12.1' if respond_to?(:chef_version)
version '11.0.2002'
version '12.0.1000'

supports 'centos'
supports 'debian'
Expand Down
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'chefspec'
require 'chefspec/berkshelf'

BUILD = '9'.freeze
VERSION = '11.0.2'.freeze
HASH = 'f51449fcd52f4d52b93a989c5c56ed3c'.freeze
BUILD = '12'.freeze
VERSION = '12.0.1'.freeze
HASH = '69cfe15208a647278a19ef0990eea691'.freeze

CACHE = Chef::Config[:file_cache_path]

Expand Down
2 changes: 1 addition & 1 deletion test/integration/alt_home/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'serverspec'

VERSION = '11.0.2'.freeze
VERSION = '12.0.1'.freeze

if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM).nil?
set :backend, :exec
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'serverspec'

VERSION = '11.0.2'.freeze
VERSION = '12.0.1'.freeze

if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM).nil?
set :backend, :exec
Expand Down

0 comments on commit 8d582bb

Please sign in to comment.