Make creation of nova database dependant on mysql::config instead of mysql::server, database isn't fully configured until this has been run.
This commit is contained in:
parent
03c6ddb013
commit
bd80998818
|
@ -20,7 +20,7 @@ class nova::db::mysql(
|
||||||
password => $password,
|
password => $password,
|
||||||
host => $host,
|
host => $host,
|
||||||
# I may want to inject some sql
|
# I may want to inject some sql
|
||||||
require => Class['mysql::server'],
|
require => Class['mysql::config'],
|
||||||
}
|
}
|
||||||
|
|
||||||
if $allowed_hosts {
|
if $allowed_hosts {
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'nova::db::mysql' do
|
||||||
|
let :facts do
|
||||||
|
{ :osfamily => "Debian" }
|
||||||
|
end
|
||||||
|
let :params do
|
||||||
|
{ :password => "qwerty" }
|
||||||
|
end
|
||||||
|
it { should contain_mysql__db('nova').with(
|
||||||
|
:user => 'nova',
|
||||||
|
:password => 'qwerty',
|
||||||
|
:require => "Class[Mysql::Config]"
|
||||||
|
)}
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue