MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation which is the way documented in OpenStack [1] and already the default in puppetlabs-mysql [2]. [1] http://goo.gl/GA5gyZ [2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7 Change-Id: Ia62e6acb4eab5539a6525e89d0a82081c16613f4 Closes-bug: #1446375
This commit is contained in:
parent
3d8d00d613
commit
6fa0931083
@ -24,7 +24,7 @@
|
||||
# the database charset. Optional. Defaults to 'utf8'
|
||||
#
|
||||
# [*collate*]
|
||||
# the database collation. Optional. Defaults to 'utf8_unicode_ci'
|
||||
# the database collation. Optional. Defaults to 'utf8_general_ci'
|
||||
#
|
||||
# [*cluster_id*]
|
||||
# (Optional) The cluster id.
|
||||
@ -40,7 +40,7 @@ class manila::db::mysql (
|
||||
$host = '127.0.0.1',
|
||||
$allowed_hosts = undef,
|
||||
$charset = 'utf8',
|
||||
$collate = 'utf8_unicode_ci',
|
||||
$collate = 'utf8_general_ci',
|
||||
$cluster_id = 'localzone',
|
||||
$mysql_module = undef,
|
||||
) {
|
||||
|
@ -20,10 +20,11 @@ describe 'manila::db::mysql' do
|
||||
req_params
|
||||
end
|
||||
it { is_expected.to contain_openstacklib__db__mysql('manila').with(
|
||||
:user => 'manila',
|
||||
:user => 'manila',
|
||||
:password_hash => '*D821809F681A40A6E379B50D0463EFAE20BDD122',
|
||||
:host => '127.0.0.1',
|
||||
:charset => 'utf8'
|
||||
:host => '127.0.0.1',
|
||||
:charset => 'utf8',
|
||||
:collate => 'utf8_general_ci',
|
||||
) }
|
||||
end
|
||||
describe "overriding allowed_hosts param to array" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user