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: I1116cb941e9e432edb6228950c2b0cb4b2790802
Closes-bug: #1446375
This commit is contained in:
Emilien Macchi 2015-04-21 13:14:58 -04:00 committed by Sebastien Badia
parent f23a640a12
commit c29c2610a3
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@
#
# [*collate*]
# (optional) Charset collate of tuskar database
# Defaults 'utf8_unicode_ci'.
# Defaults 'utf8_general_ci'.
#
# [*mysql_module*]
# (optional) Deprecated. Does nothing
@ -59,7 +59,7 @@ class tuskar::db::mysql(
$host = '127.0.0.1',
$allowed_hosts = undef,
$charset = 'utf8',
$collate = 'utf8_unicode_ci',
$collate = 'utf8_general_ci',
$mysql_module = undef,
) {

View File

@ -17,7 +17,7 @@ describe 'tuskar::db::mysql' do
:password => 's3cr3t',
:user => 'tuskar',
:charset => 'utf8',
:collate => 'utf8_unicode_ci',
:collate => 'utf8_general_ci',
:host => '127.0.0.1',
}
end