Merge pull request #184 from enovance/bug/183/goneri
mongod: 10gen packages only on Debian
This commit is contained in:
commit
6abce120d0
@ -38,13 +38,17 @@ class cloud::database::nosql(
|
|||||||
# bind_ip should be an array
|
# bind_ip should be an array
|
||||||
$bind_ip_real = any2array($bind_ip)
|
$bind_ip_real = any2array($bind_ip)
|
||||||
|
|
||||||
# use mongo's own repo instead of the distro's
|
$manage_mongodb_package_repo = $::osfamily ? {
|
||||||
|
'RedHat' => false,
|
||||||
|
default => true
|
||||||
|
}
|
||||||
|
|
||||||
class { 'mongodb::globals':
|
class { 'mongodb::globals':
|
||||||
manage_package_repo => true
|
manage_package_repo => $manage_mongodb_package_repo
|
||||||
}->
|
}->
|
||||||
class { 'mongodb':
|
class { 'mongodb':
|
||||||
bind_ip => $bind_ip_real,
|
bind_ip => $bind_ip_real,
|
||||||
nojournal => $nojournal
|
nojournal => $nojournal,
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@ describe 'cloud::database::nosql' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'configure mongodb server' do
|
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::globals').with_before('Class[Mongodb]')
|
||||||
should contain_class('mongodb').with(
|
should contain_class('mongodb').with(
|
||||||
:bind_ip => ['10.0.0.1'],
|
:bind_ip => ['10.0.0.1'],
|
||||||
@ -43,6 +42,7 @@ describe 'cloud::database::nosql' do
|
|||||||
{ :osfamily => 'Debian' }
|
{ :osfamily => 'Debian' }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { should contain_class('mongodb::globals').with( :manage_package_repo => true) }
|
||||||
it_configures 'openstack database nosql'
|
it_configures 'openstack database nosql'
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -51,6 +51,7 @@ describe 'cloud::database::nosql' do
|
|||||||
{ :osfamily => 'RedHat' }
|
{ :osfamily => 'RedHat' }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { should contain_class('mongodb::globals').with( :manage_package_repo => false) }
|
||||||
it_configures 'openstack database nosql'
|
it_configures 'openstack database nosql'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user