Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Java using the openjdk resource #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
)

### Java Attributes ###
default['java']['install_flavor'] = 'openjdk'
default['java']['jdk_version'] = '8'

### Prerequisites ###
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include_recipe 'mapr::repositories'

# Install java
include_recipe 'java::default'
openjdk_install node['java']['jdk_version']

include_recipe 'mapr::users'

Expand Down
6 changes: 3 additions & 3 deletions spec/unit/recipes/cldb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::cldb' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
).converge(described_recipe)
end

Expand Down Expand Up @@ -55,7 +55,7 @@

context 'Secure mode (Not necessarily with Kerberos)' do
let(:chef_run) do
ChefSpec::SoloRunner.new platform: 'centos', version: '7.4.1708' do |node|
ChefSpec::SoloRunner.new platform: 'centos', version: '7.6.1810' do |node|
node.override['mapr']['cluster']['config']['security']['secure'] = true
end.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/collectd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::collectd' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/compute_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::compute' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
step_into: %w[mapr_configure_sh],
).converge(described_recipe)
end
Expand Down Expand Up @@ -42,7 +42,7 @@
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
) do |node|
node.override['mapr']['cluster']['config']['security']['secure'] = true
end.converge(described_recipe)
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/core_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::core' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
).converge(described_recipe)
end

Expand Down
6 changes: 3 additions & 3 deletions spec/unit/recipes/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
require 'spec_helper'

describe 'mapr::default' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
).converge(described_recipe)
end

it 'should include fundamental recipes' do
%w[mapr::warden mapr::repositories mapr::core java::default].each do |recipe|
%w[mapr::warden mapr::repositories mapr::core].each do |recipe|
expect(chef_run).to include_recipe(recipe)
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/disks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
require 'spec_helper'

describe 'mapr::disks' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:disk0) { '/dev/disk/by-id/wwn-0x12345678' }
let(:disk2) { '/dev/disk/by-id/wwn-0x02346578' }
let(:disk3) { '/dev/disk/by-id/wwn-0x00346578' }
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
step_into: %w[mapr_disksetup],
) do |node|
['a', 'b', 'r', 'z', 'y', 't'].each do |t|
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/grafana_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::grafana' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/hadoop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

describe 'mapr::hadoop' do
let(:hadoop_path) { '/opt/mapr/hadoop/hadoop-2.7.0/etc/hadoop' }
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new platform: 'centos', version: '7.4.1708' do |node|
ChefSpec::SoloRunner.new platform: 'centos', version: '7.6.1810' do |node|
node.override['mapr']['hadoop']['config'] = {
'core' => { 'property' => 'value' },
'hdfs' => { 'property' => 'value' },
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/hs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::hs' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
).converge(described_recipe)
end

Expand Down
6 changes: 3 additions & 3 deletions spec/unit/recipes/httpfs_rspec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'spec_helper'

describe 'mapr::httpfs' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
step_into: ['warden_service'],
).converge(described_recipe)
end
Expand All @@ -29,7 +29,7 @@
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
step_into: ['warden_service'],
) do |node|
node.override['mapr']['httpfs']['nb_servers'] = 46
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/mast_gateway_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'spec_helper'

describe 'mapr::mast_gateway' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
step_into: ['warden_service'],
).converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/mcs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::mcs' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/mfs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::mfs' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/nfs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::nfs' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/opentsdb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::opentsdb' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/repositories_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::repositories' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/resourcemanager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::resourcemanager' do
context 'When all attributes are default, on centos 7.4.1708' do
context 'When all attributes are default, on centos 7.6.1810' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/security_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
).converge(described_recipe)
end
it 'should create the ssl files' do
Expand All @@ -33,7 +33,7 @@

context 'Secure mode in a master node' do
let(:chef_run) do
ChefSpec::SoloRunner.new platform: 'centos', version: '7.4.1708' do |node|
ChefSpec::SoloRunner.new platform: 'centos', version: '7.6.1810' do |node|
node.override['mapr']['cluster']['components'] = %w[cldb]
node.override['mapr']['cluster']['config']['security']['secure'] = true
end.converge(described_recipe)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/smart_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
) do |node|
node.override['mapr']['cluster']['components'] = %w[cldb resourcemanager zookeeper]
end.converge(described_recipe)
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
require 'spec_helper'

describe 'mapr::default' do
context 'With default attributes, on centos 7.4.1708' do
context 'With default attributes, on centos 7.6.1810' do
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
).converge(described_recipe)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/warden_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/recipes/zookeeper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let(:chef_run) do
runner = ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
)
runner.converge(described_recipe)
end
Expand Down Expand Up @@ -68,7 +68,7 @@
let(:chef_run) do
ChefSpec::SoloRunner.new(
platform: 'centos',
version: '7.4.1708',
version: '7.6.1810',
) do |node|
node.override['mapr']['cluster']['config']['security']['secure'] = true
end.converge(described_recipe)
Expand Down