Merge "Add notify to mariadb_galera_configuration"
This commit is contained in:
commit
fd0bdcb7e5
|
@ -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
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue