c1f6ba999e
amqp1 driver of the oslo.messaging library was deprecated and it is no longer tested. This replaces usage of the driver by the RabbitMQ driver. Depends-on: https://review.opendev.org/861070 Change-Id: I17666d9507564acb05a69143879ca2ec4b0bdeb0
38 lines
838 B
Puppet
38 lines
838 B
Puppet
# Create a message queue user for a service
|
|
#
|
|
# [*password*]
|
|
# The password for the message queue account
|
|
#
|
|
# [*admin*]
|
|
# (optional) If the acconut is an admin account
|
|
# Defaults to true
|
|
#
|
|
# [*vhost*]
|
|
# The virtual host assigned to the user
|
|
# Defaults to /
|
|
#
|
|
define openstack_integration::mq_user (
|
|
$password,
|
|
$admin = true,
|
|
$vhost = '/',
|
|
) {
|
|
|
|
include openstack_integration::config
|
|
include openstack_integration::rabbitmq
|
|
|
|
rabbitmq_user { $name:
|
|
admin => $admin,
|
|
password => $password,
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
|
|
rabbitmq_user_permissions { "${name}@${vhost}":
|
|
configure_permission => '.*',
|
|
write_permission => '.*',
|
|
read_permission => '.*',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
}
|