Add notify to mariadb_galera_configuration

Need to trigger a restart after changing the galera configuration.

Change-Id: Ie148e8dce2e945ea956f6521c04bfc031f9da3f2
This commit is contained in:
Jens Harbott 2020-10-09 07:50:23 +02:00
parent 6ae2f275b1
commit 66135da448
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,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

View File

@ -26,6 +26,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',