Ubuntu: Use utf8mb3 charset in MySQL

... to fix the broken idempotency in litmus job. Current mysql/mariadb
in Ubuntu replaces utf8 with uft8mb3 automatically and this behavior
results in unexpected change in second run.

Related-Bug: #1929073
Change-Id: Ide1f9484d0f9aaf719ccfbe3ab5282ecd901ae6b
(cherry picked from commit 697cbb83db)
This commit is contained in:
Takashi Kajinami 2022-06-24 10:23:11 +09:00
parent 9e10e80160
commit 287d26a5b4
1 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,13 @@ describe 'openstacklib mysql' do
class { 'mysql::server': }
::openstacklib::db::mysql { 'ci':
$charset = $::operatingsystem ? {
'Ubuntu' => 'utf8mb3',
default => 'utf8',
}
openstacklib::db::mysql { 'ci':
charset => $charset,
password_hash => mysql::password('keystone'),
allowed_hosts => '127.0.0.1',
}