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:
parent
d1ed020187
commit
6295eb1242
|
@ -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')
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue