Browse Source

Merge "Add notify to mariadb_galera_configuration"

changes/89/772289/1
Zuul 8 months ago
committed by Gerrit Code Review
parent
commit
fd0bdcb7e5
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      recipes/mariadb-cluster-server.rb
  2. +4
    -0
      spec/mariadb-cluster-server_spec.rb

+ 1
- 0
recipes/mariadb-cluster-server.rb View File

@ -59,6 +59,7 @@ mariadb_galera_configuration 'MariaDB Galera Configuration' do
gcomm_address gcomm_address
wsrep_provider_options provider_options
wsrep_sst_method 'rsync'
notifies :restart, 'service[mysql]', :immediately
end
# Install clustercheck tool


+ 4
- 0
spec/mariadb-cluster-server_spec.rb View File

@ -24,6 +24,10 @@ describe 'openstack-ops-database::mariadb-cluster-server' do
)
end
it do
expect(chef_run.mariadb_galera_configuration('MariaDB Galera Configuration')).to notify('service[mysql]').to(:restart).immediately
end
it do
expect(chef_run).to create_if_missing_cookbook_file('/usr/bin/clustercheck').with(
source: 'clustercheck',


Loading…
Cancel
Save