mongodb: manage manage_package_repo on RHEL
manage_package_repo should be set to true, otherwise mongodb module is not aware about Packaging specifications on RHEL. Bug #408 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
16f4132f67
commit
a0dd091a72
@ -44,13 +44,8 @@ class cloud::database::nosql(
|
||||
# bind_ip should be an array
|
||||
$bind_ip_real = any2array($bind_ip)
|
||||
|
||||
$manage_mongodb_package_repo = $::osfamily ? {
|
||||
'RedHat' => false,
|
||||
default => true
|
||||
}
|
||||
|
||||
class { 'mongodb::globals':
|
||||
manage_package_repo => $manage_mongodb_package_repo
|
||||
manage_package_repo => true
|
||||
}->
|
||||
class { 'mongodb':
|
||||
bind_ip => $bind_ip_real,
|
||||
|
@ -29,6 +29,7 @@ describe 'cloud::database::nosql' do
|
||||
end
|
||||
|
||||
it 'configure mongodb server' do
|
||||
should contain_class('mongodb::globals').with( :manage_package_repo => true)
|
||||
should contain_class('mongodb::globals').with_before('Class[Mongodb]')
|
||||
should contain_class('mongodb').with(
|
||||
:bind_ip => ['10.0.0.1'],
|
||||
@ -58,7 +59,6 @@ describe 'cloud::database::nosql' do
|
||||
}
|
||||
end
|
||||
|
||||
it { should contain_class('mongodb::globals').with( :manage_package_repo => true) }
|
||||
it_configures 'openstack database nosql'
|
||||
end
|
||||
|
||||
@ -67,7 +67,6 @@ describe 'cloud::database::nosql' do
|
||||
{ :osfamily => 'RedHat' }
|
||||
end
|
||||
|
||||
it { should contain_class('mongodb::globals').with( :manage_package_repo => false) }
|
||||
it_configures 'openstack database nosql'
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user