Change require => mysql::server to mysql::config so the mysql is fully configured before glance database is created.
This commit is contained in:
parent
14c2f4c9dd
commit
cbd1a0d43f
@ -22,7 +22,7 @@ class glance::db::mysql(
|
||||
host => $host,
|
||||
charset => 'latin1',
|
||||
# I may want to inject some sql
|
||||
require => Class['mysql::server'],
|
||||
require => Class['mysql::config'],
|
||||
}
|
||||
|
||||
if $allowed_hosts {
|
||||
|
@ -5,8 +5,8 @@ describe 'glance::db::mysql' do
|
||||
{
|
||||
:osfamily => 'Debian'
|
||||
}
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe "with default params" do
|
||||
let :params do
|
||||
{
|
||||
@ -15,5 +15,12 @@ describe 'glance::db::mysql' do
|
||||
end
|
||||
|
||||
it { should include_class('mysql::python') }
|
||||
|
||||
it { should contain_mysql__db('glance').with(
|
||||
:password => 'glancepass1',
|
||||
:require => 'Class[Mysql::Config]'
|
||||
)}
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user