Added queue permissions to created rabbitmq user

- updated all test to specify a rabbitmq user
This commit is contained in:
Dan Bode
2011-06-18 16:44:14 -07:00
parent ddb4b6290f
commit eb468b2569
2 changed files with 12 additions and 5 deletions

View File

@@ -26,6 +26,13 @@ class nova::rabbitmq(
provider => 'rabbitmqctl',
require => Class['rabbitmq::server'],
}
# I need to figure out the appropriate permissions
rabbitmq_user_permissions { "${userid}@${virtual_host}":
configure_permission => '.*',
write_permission => '.*',
read_permission => '.*',
provider => 'rabbitmqctl',
}
}
class { 'rabbitmq::server':
port => $port,

View File

@@ -20,11 +20,11 @@ class { 'nova::all':
db_user => 'nova',
db_host => 'localhost',
#$rabbit_password => 'rabbitpassword',
#rabbit_port => '5672',
#rabbit_userid => 'rabbit_user',
#rabbit_virtual_host => '/',
#rabbit_host => 'localhost',
rabbit_password => 'rabbitpassword',
rabbit_port => '5672',
rabbit_userid => 'rabbit_user',
rabbit_virtual_host => '/',
rabbit_host => 'localhost',
image_service => 'nova.image.glance.GlanceImageService',