fixed cluster::mysql requires mysql client installed
cluster::mysql calls `mysql` command in create-init-file However mysql client package is not installed at a moment, when this command is executed. Thus it fails. Change-Id: Iaf4dd8f8ffe58e47bef07df04952d889a8c32212 Closes-Bug: #1638904 Signed-off-by: Pavel Glushchak <pglushchak@virtuozzo.com>
This commit is contained in:
parent
864c8e8696
commit
bdbabac9fc
|
@ -309,12 +309,17 @@ class osnailyfacter::database::database {
|
|||
only_from => "127.0.0.1 240.0.0.2 ${management_networks}",
|
||||
}
|
||||
|
||||
class { '::openstack::galera::client':
|
||||
custom_setup_class => $custom_setup_class,
|
||||
}
|
||||
|
||||
# include our integration with pacemaker
|
||||
class { '::cluster::mysql':
|
||||
mysql_user => $status_user,
|
||||
mysql_password => $status_password,
|
||||
mysql_config => '/etc/mysql/my.cnf',
|
||||
mysql_socket => $mysql_socket,
|
||||
require => Class['::openstack::galera::client'],
|
||||
}
|
||||
|
||||
# this overrides /root/.my.cnf created by mysql::server::root_password
|
||||
|
|
|
@ -195,6 +195,10 @@ describe manifest do
|
|||
)
|
||||
end
|
||||
|
||||
it 'should install mysql client package' do
|
||||
should contain_class('openstack::galera::client')
|
||||
end
|
||||
|
||||
it 'should configure pacemaker with mysql service' do
|
||||
should contain_class('cluster::mysql').with(
|
||||
:mysql_user => 'clustercheck',
|
||||
|
|
Loading…
Reference in New Issue