ensure controller sets cinder's rabbit user
Previously, the controller was not correctly updating the rabbit_userid for the cinder controller when it was passed in as a class parameter to openstack::controller. This patch resolves that issue. Change-Id: I53e3c06cc400c25d24da8d35cf5874ba7f9879e8
This commit is contained in:
@@ -403,6 +403,7 @@ class openstack::controller (
|
||||
bind_host => $cinder_bind_address,
|
||||
keystone_auth_host => $keystone_host,
|
||||
keystone_password => $cinder_user_password,
|
||||
rabbit_userid => $rabbit_user,
|
||||
rabbit_password => $rabbit_password,
|
||||
rabbit_host => $rabbit_host,
|
||||
db_password => $cinder_db_password,
|
||||
|
@@ -455,6 +455,7 @@ describe 'openstack::controller' do
|
||||
let :params do
|
||||
default_params.merge(
|
||||
:verbose => 'True',
|
||||
:rabbit_user => 'rabbituser',
|
||||
:rabbit_password => 'rabbit_pw2',
|
||||
:cinder_user_password => 'foo',
|
||||
:cinder_db_password => 'bar',
|
||||
@@ -467,7 +468,8 @@ describe 'openstack::controller' do
|
||||
should contain_class('cinder').with(
|
||||
:verbose => 'True',
|
||||
:sql_connection => 'mysql://baz:bar@127.0.0.2/blah?charset=utf8',
|
||||
:rabbit_password => 'rabbit_pw2'
|
||||
:rabbit_password => 'rabbit_pw2',
|
||||
:rabbit_userid => 'rabbituser'
|
||||
)
|
||||
should contain_class('cinder::api').with_keystone_password('foo')
|
||||
should contain_class('cinder::scheduler')
|
||||
|
Reference in New Issue
Block a user