Fix package_provider for RedHat systems

The package_provider parameter of the rabbitmq defaults to 'rpm'
which can give dependecy problems, this patch sets it to yum which
addresses this potential problems.

Conflicts:
	manifests/messaging.pp

Change-Id: I8dde5c0c22d227a6b48a53a09952450449e6bd53
This commit is contained in:
Ivan Chavero
2015-02-05 15:56:28 -07:00
parent 06d33d63da
commit 8aced3d220
2 changed files with 15 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ describe 'cloud::messaging' do
:node_ip_address => params[:rabbitmq_ip],
:erlang_cookie => params[:erlang_cookie],
:port => '5672',
:package_provider => platform_params[:package_provider],
)
end
@@ -96,6 +97,10 @@ describe 'cloud::messaging' do
{ :osfamily => 'Debian' }
end
let :platform_params do
{ :package_provider => 'apt' }
end
it_configures 'openstack messaging'
end
@@ -104,6 +109,11 @@ describe 'cloud::messaging' do
{ :osfamily => 'RedHat' }
end
let :platform_params do
{ :package_provider => 'yum' }
end
let :params do
{ :erlang_cookie => 'MY_COOKIE' }
end