Skip to content

Commit

Permalink
Merge pull request redhat-openstack#246 from mhamrah/master
Browse files Browse the repository at this point in the history
Use rpm for RedHat family installs
  • Loading branch information
cmurphy committed Dec 15, 2014
2 parents ecd7447 + a6b2f80 commit ed96902
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class { 'rabbitmq':
* rabbitmq::params: Different configuration data for different systems.
* rabbitmq::service: Handles the rabbitmq service.
* rabbitmq::repo::apt: Handles apt repo for Debian systems.
* rabbitmq::repo::rhel: Handles yum repo for Redhat systems.
* rabbitmq::repo::rhel: Handles rpm repo for Redhat systems.

###Parameters

Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
$package_ensure = 'installed'
$package_name = 'rabbitmq-server'
$service_name = 'rabbitmq-server'
$package_provider = 'yum'
$package_provider = 'rpm'
$version = '3.1.5-1'
$base_version = regsubst($version,'^(.*)-\d$','\1')
# This must remain at the end as we need $base_version and $version defined first.
Expand Down
8 changes: 4 additions & 4 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
it { should contain_rabbitmq_plugin('rabbitmq_auth_backend_ldap') }

it 'should contain ldap parameters' do
verify_contents(subject, 'rabbitmq.config',
verify_contents(subject, 'rabbitmq.config',
['[', ' {rabbit, [', ' {auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]},', ' ]}',
' {rabbitmq_auth_backend_ldap, [', ' {other_bind, anon},',
' {servers, ["ldap.example.com"]},',
Expand All @@ -462,7 +462,7 @@
it { should contain_rabbitmq_plugin('rabbitmq_auth_backend_ldap') }

it 'should contain ldap parameters' do
verify_contents(subject, 'rabbitmq.config',
verify_contents(subject, 'rabbitmq.config',
['[', ' {rabbit, [', ' {auth_backends, [rabbit_auth_backend_internal, rabbit_auth_backend_ldap]},', ' ]}',
' {rabbitmq_auth_backend_ldap, [', ' {other_bind, anon},',
' {servers, ["ldap.example.com"]},',
Expand Down Expand Up @@ -621,7 +621,7 @@
it 'should set config variables' do
should contain_file('rabbitmq.config') \
.with_content(/\{inet_dist_listen_min, 9100\}/) \
.with_content(/\{inet_dist_listen_max, 9105\}/)
.with_content(/\{inet_dist_listen_max, 9105\}/)
end
end

Expand Down Expand Up @@ -725,7 +725,7 @@
should contain_package('rabbitmq-server').with(
'ensure' => 'installed',
'name' => 'rabbitmq-server',
'provider' => 'yum',
'provider' => 'rpm',
'source' => 'http://www.rabbitmq.com/releases/rabbitmq-server/v3.2.3/rabbitmq-server-3.2.3-1.noarch.rpm'
)
end
Expand Down

0 comments on commit ed96902

Please sign in to comment.