Fix rabbitmq configuration

We can move to the current master repo for puppet-rabbitmq, since
this is what we are testing in RDO. This requires a few changes:

- Update the URL used in the Puppetfile, and set the branch to 'master'.
- Remove old workarounds in amqp.pp
- Set loopback_users properly, based on what is requested by [1].

[1] - 0ada399b33

Change-Id: I9262836eb05a47bfe78ea0ac6d1c04199f29f527
This commit is contained in:
Javier Pena 2018-04-26 17:10:34 +02:00
parent 7ade23e0b3
commit b1c78d696a
2 changed files with 4 additions and 13 deletions

View File

@ -129,8 +129,8 @@ mod 'nssdb',
:ref => 'master'
mod 'rabbitmq',
:git => 'https://github.com/puppetlabs/puppetlabs-rabbitmq',
:ref => '5.6.0'
:git => 'https://github.com/voxpupuli/puppet-rabbitmq',
:ref => 'master'
mod 'redis',
:git => 'https://github.com/arioch/puppet-redis',

View File

@ -28,11 +28,11 @@ define enable_rabbitmq {
package_provider => 'yum',
repos_ensure => false,
admin_enable => false,
loopback_users => [],
# FIXME: it's ugly to not to require client certs
ssl_fail_if_no_peer_cert => true,
config_variables => {
'tcp_listen_options' => '[binary,{packet, raw},{reuseaddr, true},{backlog, 128},{nodelay, true},{exit_on_close, false},{keepalive, true}]',
'loopback_users' => '[]',
},
}
} else {
@ -44,21 +44,12 @@ define enable_rabbitmq {
package_provider => 'yum',
repos_ensure => false,
admin_enable => false,
loopback_users => [],
config_variables => {
'tcp_listen_options' => '[binary,{packet, raw},{reuseaddr, true},{backlog, 128},{nodelay, true},{exit_on_close, false},{keepalive, true}]',
'loopback_users' => '[]',
},
}
}
# TO-DO: remove this workaround as soon as this is fixed in puppetlabs-rabbitmq module
# https://github.com/puppetlabs/puppetlabs-rabbitmq/pull/454
File <| path == '/etc/rabbitmq/rabbitmq.config' |> {
ensure => present,
owner => 'rabbitmq',
group => 'rabbitmq',
mode => '0640',
}
}
class packstack::amqp ()