puppet-openstack-integration/manifests/rabbitmq.pp
Emilien Macchi 7a3c110294 rabbitmq: make sure RabbitMQ resources are created before running OpenStack
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
2016-01-05 23:05:03 +00:00

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' |>
}