Merge "Add notify to mariadb_galera_configuration"

This commit is contained in:
Zuul 2020-10-13 05:20:58 +00:00 committed by Gerrit Code Review
commit fd0bdcb7e5
2 changed files with 5 additions and 0 deletions

View File

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

View File

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