messaging / RHEL: create binaries link
Due to a packaging bug*, we need to create symbolic links to properly create RabbitMQ resources using puppetlabs-mongodb. * https://bugzilla.redhat.com/show_bug.cgi?id=1033305 Bug #409 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -38,6 +38,19 @@ class cloud::messaging(
|
|||||||
$cluster_node_type = 'disc'
|
$cluster_node_type = 'disc'
|
||||||
){
|
){
|
||||||
|
|
||||||
|
# Packaging issue: https://bugzilla.redhat.com/show_bug.cgi?id=1033305
|
||||||
|
if $::osfamily == 'RedHat' {
|
||||||
|
file {'/usr/sbin/rabbitmq-plugins':
|
||||||
|
ensure => link,
|
||||||
|
target => '/usr/lib/rabbitmq/bin/rabbitmq-plugins'
|
||||||
|
}
|
||||||
|
|
||||||
|
file {'/usr/sbin/rabbitmq-env':
|
||||||
|
ensure => link,
|
||||||
|
target => '/usr/lib/rabbitmq/bin/rabbitmq-env'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class { 'rabbitmq':
|
class { 'rabbitmq':
|
||||||
delete_guest_user => true,
|
delete_guest_user => true,
|
||||||
config_cluster => true,
|
config_cluster => true,
|
||||||
|
@@ -68,6 +68,17 @@ describe 'cloud::messaging' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'openstack messaging'
|
it_configures 'openstack messaging'
|
||||||
|
|
||||||
|
it 'should create rabbitmq binaries symbolic links' do
|
||||||
|
should contain_file('/usr/sbin/rabbitmq-plugins').with(
|
||||||
|
:ensure => 'link',
|
||||||
|
:target => '/usr/lib/rabbitmq/bin/rabbitmq-plugins'
|
||||||
|
)
|
||||||
|
should contain_file('/usr/sbin/rabbitmq-env').with(
|
||||||
|
:ensure => 'link',
|
||||||
|
:target => '/usr/lib/rabbitmq/bin/rabbitmq-env'
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user