Files
puppet-openstack-integration/manifests/mq_user.pp
Takashi Kajinami 03b5574aa4 Stop testing amqp1 messaging driver
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.

Conflicts:
	manifests/keystone.pp
	manifests/qdr.pp

Change-Id: I17666d9507564acb05a69143879ca2ec4b0bdeb0
(cherry picked from commit c1f6ba999e)
2024-02-05 16:27:03 +09:00

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