Skip to content

Commit

Permalink
update java cookbook to latest release
Browse files Browse the repository at this point in the history
The old version fails when downloading oracle jdk
  • Loading branch information
nhanb committed Nov 28, 2014
1 parent cda71da commit c5c33eb
Show file tree
Hide file tree
Showing 50 changed files with 2,148 additions and 857 deletions.
26 changes: 19 additions & 7 deletions java/.gitignore
@@ -1,9 +1,21 @@
.bundle
.cache
.kitchen
bin
#*#
*~
.#*#
.kitchen/
*#
.#*
\#*#
.*.sw[a-z]
*.un~
*.tmp
*.bk
*.bkup
.kitchen.local.yml
Berksfile.lock
Gemfile.lock

.bundle/
.cache/
.kitchen/
.vagrant/
.vagrant.d/
bin/
tmp/
vendor/
185 changes: 124 additions & 61 deletions java/.kitchen.yml
@@ -1,67 +1,130 @@
---
driver_plugin: vagrant
driver_config:
driver:
name: vagrant
require_chef_omnibus: true
customize:
memory: 1024

platforms:
- name: ubuntu-12.04
driver_config:
box: opscode-ubuntu-12.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
run_list: ["recipe[apt]"]

- name: ubuntu-10.04
driver_config:
box: opscode-ubuntu-10.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_provisionerless.box
require_chef_omnibus: true
run_list: ["recipe[apt]"]

- name: debian-6
driver_config:
box: opscode-debian-6
box_url: http://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_debian-6.0.7_provisionerless.box
run_list: ["recipe[apt]"]

- name: centos-6.4
driver_config:
box: opscode-centos-6.4
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box

- name: centos-5.9
driver_config:
box: opscode-centos-5.9
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-5.9_provisionerless.box

- name: fedora-18
driver_config:
box: opscode-fedora-18
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode-fedora-18_provisionerless.box

suites:
- name: openjdk
excludes: ["fedora-18"]
run_list: ["recipe[minitest-handler]", "recipe[java::openjdk]"]
attributes: {}
- name: openjdk-7
excludes: ["ubuntu-10.04", "debian-6"]
run_list: ["recipe[minitest-handler]", "recipe[java::openjdk]"]
provisioner:
name: chef_zero
attributes:
java:
jdk_version: "7"
ark_retries: 2
ark_retry_delay: 10

- name: oracle
run_list: ["recipe[minitest-handler]", "recipe[java::oracle]"]
attributes:
java:
oracle:
accept_oracle_download_terms: true
install_flavor: "oracle"
- name: oracle-7
run_list: ["recipe[minitest-handler]", "recipe[java::oracle]"]
attributes:
java:
jdk_version: "7"
oracle:
accept_oracle_download_terms: true
install_flavor: "oracle"
platforms:
- name: ubuntu-14.04
run_list:
- recipe[apt]
driver:
box: opscode-ubuntu-14.04
- name: ubuntu-13.10
driver:
box: opscode-ubuntu-13.10
run_list:
- recipe[apt]
- name: ubuntu-12.04
driver:
box: opscode-ubuntu-12.04
run_list:
- recipe[apt]
- name: ubuntu-10.04
driver:
box: opscode-ubuntu-10.04
run_list:
- recipe[apt]
- name: debian-6.0.8
driver:
box: opscode-debian-6.0.8
run_list:
- recipe[apt]
- name: debian-7.6
driver:
box: opscode-debian-7.6
run_list:
- recipe[apt]
- name: debian-7.4
driver:
box: opscode-debian-7.4
run_list:
- recipe[apt]
- name: centos-7.0
driver:
box: opscode-centos-7.0
- name: centos-6.5
driver:
box: opscode-centos-6.5
- name: centos-5.10
driver:
box: opscode-centos-5.10
- name: fedora-19
driver:
box: opscode-fedora-19
- name: fedora-20
driver:
box: opscode-fedora-20

suites:
- name: openjdk
excludes:
- fedora-19
- fedora-20
run_list:
- recipe[java::default]
- name: openjdk-7
excludes:
- ubuntu-10.04
- debian-6.0.8
run_list:
- recipe[java::default]
attributes:
java:
jdk_version: "7"
- name: oracle
run_list:
- recipe[java::default]
attributes:
java:
oracle:
accept_oracle_download_terms: true
install_flavor: oracle
- name: oracle-7
run_list:
- recipe[java::default]
attributes:
java:
jdk_version: "7"
oracle:
accept_oracle_download_terms: true
install_flavor: oracle
- name: oracle-8
run_list:
- recipe[java::default]
attributes:
java:
jdk_version: "8"
oracle:
accept_oracle_download_terms: true
install_flavor: oracle
- name: oracle-direct
run_list:
- recipe[java::oracle]
attributes:
java:
oracle:
accept_oracle_download_terms: true
- name: openjdk-direct
run_list:
- recipe[java::openjdk]
excludes:
- fedora-19
- fedora-20
- name: oracle-rpm
run_list:
- recipe[java]
attributes:
java:
install_flavor: oracle_rpm
jdk_version: 7
oracle:
accept_oracle_download_terms: true
7 changes: 4 additions & 3 deletions java/Berksfile
@@ -1,7 +1,8 @@
site :opscode
source "https://supermarket.getchef.com"
metadata

group :integration do
cookbook "apt"
cookbook "minitest-handler"
cookbook 'apt', '~> 2.0'
cookbook 'yum', '~> 3.3'
cookbook 'windows', '~> 1.12'
end

0 comments on commit c5c33eb

Please sign in to comment.