puppetlabs/puppetlabs-rabbitmq — Issue #9: Admin checks in rabbitmq_user
Author: jorgeecardona
Created: 2011-10-24 04:38:27+00:00
State: open

Hi,

I'm using this code:

# RabbitMQ server
class { "rabbitmq::server":
delete_guest_user => true,
config => template('broker/rabbitmq.config.erb')
}

# User.
rabbitmq_user { 'user':
password => 'password',
admin => false,
provider => 'rabbitmqctl',
}

# Vhost.
rabbitmq_vhost { 'app':
provider => 'rabbitmqctl',
}

# Basic Permissions
rabbitmq_user_permissions { 'user@app':
configure_permission => '.*',
read_permission => '.*',
write_permission => '.*',
provider => 'rabbitmqctl',
}

After apply this I get this error:

err: /Stage[main]/Rabbitmq::Server/Rabbitmq_user[guest]: Could not evaluate: Could not match line 'guest (true|false)' from list_users (perhaps you are running on an older version of rabbitmq that does not support admin users?)

I'm using rabbitmq 2.6.1-1 in debian testing.

From http://www.rabbitmq.com/man/rabbitmqctl.1.man.html the way to set an user as admin is to set tags and there is no set_admin or clear_admin commands.

What can I do? should I downgrade to 2.5?

Thanks.