Added queue permissions to created rabbitmq user
- updated all test to specify a rabbitmq user
This commit is contained in:
@@ -26,6 +26,13 @@ class nova::rabbitmq(
|
|||||||
provider => 'rabbitmqctl',
|
provider => 'rabbitmqctl',
|
||||||
require => Class['rabbitmq::server'],
|
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':
|
class { 'rabbitmq::server':
|
||||||
port => $port,
|
port => $port,
|
||||||
|
10
tests/all.pp
10
tests/all.pp
@@ -20,11 +20,11 @@ class { 'nova::all':
|
|||||||
db_user => 'nova',
|
db_user => 'nova',
|
||||||
db_host => 'localhost',
|
db_host => 'localhost',
|
||||||
|
|
||||||
#$rabbit_password => 'rabbitpassword',
|
rabbit_password => 'rabbitpassword',
|
||||||
#rabbit_port => '5672',
|
rabbit_port => '5672',
|
||||||
#rabbit_userid => 'rabbit_user',
|
rabbit_userid => 'rabbit_user',
|
||||||
#rabbit_virtual_host => '/',
|
rabbit_virtual_host => '/',
|
||||||
#rabbit_host => 'localhost',
|
rabbit_host => 'localhost',
|
||||||
|
|
||||||
image_service => 'nova.image.glance.GlanceImageService',
|
image_service => 'nova.image.glance.GlanceImageService',
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user