7a3c110294
OpenStack services need RabbitMQ ready before starting, otherwise we will randomly have this issue: (...)closed the connection. Check login credentials: Socket closed Change-Id: I55017c6a3eb91e96136c0928045136f423866aa2
26 lines
517 B
Puppet
26 lines
517 B
Puppet
class openstack_integration::rabbitmq {
|
|
|
|
case $::osfamily {
|
|
'Debian': {
|
|
$package_provider = 'apt'
|
|
}
|
|
'RedHat': {
|
|
$package_provider = 'yum'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily (${::osfamily})")
|
|
}
|
|
}
|
|
|
|
class { '::rabbitmq':
|
|
delete_guest_user => true,
|
|
package_provider => $package_provider,
|
|
}
|
|
rabbitmq_vhost { '/':
|
|
provider => 'rabbitmqctl',
|
|
require => Class['::rabbitmq'],
|
|
}
|
|
|
|
Rabbitmq_user_permissions<||> -> Package <| tag == 'openstack' |>
|
|
}
|