nosql: fix service_name for Debian
In the newest commit of puppetlabs-mongodb, we have to specify which version or which service_name we run for MongoDB service. On Debian Wheezy, it's still MongoDB 2.4 so the service_name is 'mongodb'. For more details about that change, look at this commit: 5e229857c29bd44c9d812a21bed69098bf670a6a It requires to hardcode the verison of the package we use. On both RH & Debian, we use 2.4 for now. Change-Id: Ib29cadfe5be3fff64b513cb07b9d18b27dd8ade9
This commit is contained in:
@@ -61,7 +61,8 @@ class cloud::database::nosql(
|
||||
}
|
||||
|
||||
class { 'mongodb::globals':
|
||||
manage_package_repo => $manage_package_repo
|
||||
manage_package_repo => $manage_package_repo,
|
||||
version => '2.4.0',
|
||||
}->
|
||||
class { 'mongodb':
|
||||
bind_ip => $array_bind_ip,
|
||||
|
@@ -29,7 +29,10 @@ describe 'cloud::database::nosql' do
|
||||
end
|
||||
|
||||
it 'configure mongodb server' do
|
||||
is_expected.to contain_class('mongodb::globals').with( :manage_package_repo => platform_params[:manage_package_repo])
|
||||
is_expected.to contain_class('mongodb::globals').with(
|
||||
:manage_package_repo => platform_params[:manage_package_repo],
|
||||
:version => '2.4.0',
|
||||
)
|
||||
is_expected.to contain_class('mongodb::globals').with_before('Class[Mongodb]')
|
||||
is_expected.to contain_class('mongodb').with(
|
||||
:bind_ip => ['10.0.0.1'],
|
||||
|
Reference in New Issue
Block a user