diff --git a/manifests/db/mysql.pp b/manifests/db/mysql.pp index 9042112f..ebeeee7b 100644 --- a/manifests/db/mysql.pp +++ b/manifests/db/mysql.pp @@ -21,12 +21,12 @@ # Optional. Defaults to undef. # # [*charset*] -# the database charset. Optional. Defaults to 'latin1' +# the database charset. Optional. Defaults to 'utf8' # # [*collate*] # the database collate. Optional. Only used with mysql modules # >= 2.2 -# Defaults to 'latin1_swedish_ci' +# Defaults to 'utf8_unicode_ci' # # [*mysql_module*] # The version of the mysql puppet module to use. @@ -39,8 +39,8 @@ class heat::db::mysql( $user = 'heat', $host = 'localhost', $allowed_hosts = undef, - $charset = 'latin1', - $collate = 'latin1_swedish_ci', + $charset = 'utf8', + $collate = 'utf8_unicode_ci', $mysql_module = '0.9' ) { diff --git a/spec/classes/heat_db_mysql_spec.rb b/spec/classes/heat_db_mysql_spec.rb index 289d1ab4..2d4febb7 100644 --- a/spec/classes/heat_db_mysql_spec.rb +++ b/spec/classes/heat_db_mysql_spec.rb @@ -10,7 +10,7 @@ describe 'heat::db::mysql' do :dbname => 'heat', :user => 'heat', :host => 'localhost', - :charset => 'latin1', + :charset => 'utf8', :mysql_module => '0.9' } end