Support db creation for openstack-bare-metal cookbook

Depends on the patch https://review.openstack.org/#/c/148458/

blueprint bare-metal-enablement

Change-Id: I627eb4e5f65bfd377ffee960edbc2f42b9b074cd
This commit is contained in:
wenchma 2015-01-20 16:15:32 +08:00 committed by Mark Vanderwiel
parent d1ed020187
commit 6295eb1242
2 changed files with 7 additions and 0 deletions

View File

@ -69,3 +69,8 @@ db_create_with_user(
node['openstack']['db']['orchestration']['username'],
get_password('db', 'heat')
)
db_create_with_user(
'bare-metal',
node['openstack']['db']['bare-metal']['username'],
get_password('db', 'ironic')
)

View File

@ -26,6 +26,8 @@ describe 'openstack-ops-database::openstack-db' do
.with 'block-storage', 'cinder', 'test-pass'
expect_any_instance_of(Chef::Recipe).to receive(:db_create_with_user)
.with 'orchestration', 'heat', 'test-pass'
expect_any_instance_of(Chef::Recipe).to receive(:db_create_with_user)
.with 'bare-metal', 'ironic', 'test-pass'
@chef_run.converge(described_recipe)
end