Merge pull request #571 from enovance/galera-orchestration
database/sql: run bootstrap-mysql before mysql start
This commit is contained in:
@@ -192,7 +192,7 @@ class cloud::database::sql (
|
||||
exec { 'bootstrap-mysql':
|
||||
command => '/usr/bin/mysql_install_db --rpm --user=mysql',
|
||||
unless => 'test -d /var/lib/mysql/mysql',
|
||||
notify => Service['mysqld'],
|
||||
before => Service['mysqld'],
|
||||
require => [Package['mysql-server'], File[$mysql_server_config_file]]
|
||||
}
|
||||
|
||||
|
@@ -208,7 +208,7 @@ describe 'cloud::database::sql' do
|
||||
should contain_exec('bootstrap-mysql').with(
|
||||
:command => '/usr/bin/mysql_install_db --rpm --user=mysql',
|
||||
:unless => "test -d /var/lib/mysql/mysql",
|
||||
:notify => 'Service[mysqld]'
|
||||
:before => 'Service[mysqld]'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user