puppet-openstack-integration/manifests/mq_user.pp
Takashi Kajinami 0a8901e988 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:
	fixtures/scenario001.pp
	manifests/keystone.pp
	manifests/manila.pp
	manifests/qdr.pp

Change-Id: I17666d9507564acb05a69143879ca2ec4b0bdeb0
(cherry picked from commit c1f6ba999e)
(cherry picked from commit 03b5574aa4)
(cherry picked from commit d6b05a6b74)
2024-02-06 13:00:13 +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'],
}
}