Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #74 from Alfresco/TAA-670
Browse files Browse the repository at this point in the history
TAA-670 - Oracle java is now the default
  • Loading branch information
Enzo Rivello authored Jun 20, 2016
2 parents 3ab4c06 + 0c179d5 commit 966cb6e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# General ignores
Gemfile.lock
Berksfile.lock
tmp/
berks-cookbooks
.DS_Store
Expand All @@ -17,3 +18,5 @@ nohup.out

# Alfresco license ignores
**/*.lic

.idea
7 changes: 5 additions & 2 deletions Berksfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ DEPENDENCIES
commons
git: https://github.com/Alfresco/chef-commons.git
revision: d4ff9f8afd40e1006d2f6fb8867f116bc3556789
database
git: https://github.com/enzor/database.git
revision: 416897fdc662766025eaf2ace668a3f3c62850c3
file
git: https://github.com/jenssegers/chef-file.git
revision: 050c5554efcc024d9a058908280bfb05037f9848
Expand All @@ -23,7 +26,7 @@ GRAPH
windows (>= 1.2.2)
activemq (2.0.4)
java (~> 1.13)
alfresco (0.6.23)
alfresco (0.6.29)
activemq (>= 1.3.3)
artifact-deployer (>= 0.8.16)
build-essential (>= 2.2.3)
Expand Down Expand Up @@ -74,7 +77,7 @@ GRAPH
yum-epel (>= 0.6.0)
compat_resource (12.7.3)
cpu (0.2.0)
database (4.0.9)
database (5.0.0)
postgresql (>= 1.0.0)
dmg (2.3.0)
ffmpeg (0.4.4)
Expand Down
10 changes: 0 additions & 10 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@
#Mysql defaults
default['mysql']['update_gcc'] = true

# Java defaults
default["java"]["default"] = true
default["java"]["accept_license_agreement"] = true
default["java"]["install_flavor"] = "oracle"
default["java"]["jdk_version"] = "8"
default["java"]["java_home"] = "/usr/lib/jvm/java"
default["java"]["oracle"]['accept_oracle_download_terms'] = true

default['java']['jdk']['8']['x86_64']['url'] = 'http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz'
default['java']['jdk']['8']['x86_64']['checksum'] = '3f3d7d0cd70bfe0feab382ed4b0e45c0'
#3rd-party defaults
default['alfresco']['imagemagick_version'] = "6.9.4-9"
default['alfresco']['use_imagemagick_os_repo'] = true
Expand Down
7 changes: 7 additions & 0 deletions attributes/java.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Java defaults
default['java']['install_flavor'] = 'oracle'
default['java']['jdk_version'] = '8'
default['java']['java_home'] = '/usr/lib/jvm/java'
default['java']['jdk']['8']['x86_64']['url'] = 'http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz'
default['java']['jdk']['8']['x86_64']['checksum'] = '3f3d7d0cd70bfe0feab382ed4b0e45c0'
default['java']['oracle']['accept_oracle_download_terms'] = true
5 changes: 2 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# enterprise = true if Float(node['alfresco']['version'].split('').last) or node['alfresco']['version'].end_with?("SNAPSHOT") rescue false
# [New implementation]
if node['alfresco']['edition'] == 'enterprise'
node.default['artifacts']['alfresco']['artifactId'] = "alfresco-enterprise"
node.default['artifacts']['alfresco']['artifactId'] = "alfresco-enterprise"
unless node['alfresco']['version'].start_with?("5.1")
node.default['artifacts']['share']['artifactId'] = "share-enterprise"
end
Expand All @@ -63,7 +63,6 @@

include_recipe 'java::default'


if node['alfresco']['components'].include? 'yourkit'
include_recipe "alfresco::yourkit"
end
Expand Down Expand Up @@ -135,7 +134,7 @@
include_recipe "alfresco::apply-amps"
end

if node['alfresco']['db_ssl_enabled'] == true
if node['alfresco']['db_ssl_enabled']
node.default['artifacts']['ssl-db-creds']['enabled'] = true
execute "import key to RDS keystore" do
command "keytool -import -alias RDSmysqlServerCACert -file #{node['artifacts']['ssl-db-creds']['destination']} -keystore #{node['alfresco']['keystore_file']}"
Expand Down

0 comments on commit 966cb6e

Please sign in to comment.