Browse Source

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
wenchma 4 years ago
parent
commit
6295eb1242
2 changed files with 7 additions and 0 deletions
  1. 5
    0
      recipes/openstack-db.rb
  2. 2
    0
      spec/openstack-db_spec.rb

+ 5
- 0
recipes/openstack-db.rb View File

@@ -69,3 +69,8 @@ db_create_with_user(
69 69
   node['openstack']['db']['orchestration']['username'],
70 70
   get_password('db', 'heat')
71 71
 )
72
+db_create_with_user(
73
+  'bare-metal',
74
+  node['openstack']['db']['bare-metal']['username'],
75
+  get_password('db', 'ironic')
76
+)

+ 2
- 0
spec/openstack-db_spec.rb View File

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

Loading…
Cancel
Save