Skip to content

Commit

Permalink
Do not set repository provided on RedHat by default (deric#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Jun 24, 2020
1 parent ce493ad commit 9fc3c7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
$java_bin = '/usr/bin/java'
$java_opts = ''
$java_package = undef
$repo = 'cloudera'
$repo = undef
$proxy_server = undef
$proxy_type = undef

Expand Down
6 changes: 6 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@
end

if os_facts[:osfamily] == 'RedHat'
context 'Do not use cloudera by default' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('zookeeper::install::repo') }
it { is_expected.not_to contain_yumrepo('cloudera-cdh5') }
end

context 'use Cloudera RPM repo' do
let(:params) do
{
Expand Down

0 comments on commit 9fc3c7b

Please sign in to comment.