
The default collate method used by the mysql puppet module is not compatbile with our 4 byte encoding. Update the collate method to match the 4 byte encoding. Change-Id: I8f65316ba609ecf30c9797d631bdeb4a083b16ce
33 lines
742 B
Puppet
33 lines
742 B
Puppet
# == Class: puppet-etherpad_lite::mysql
|
|
#
|
|
class etherpad_lite::mysql(
|
|
$database_password,
|
|
$mysql_root_password,
|
|
$database_name = 'etherpad-lite',
|
|
$database_user = 'eplite',
|
|
) {
|
|
class { '::mysql::server':
|
|
root_password => $mysql_root_password,
|
|
override_options => {
|
|
'mysqld' => {
|
|
'default-storage-engine' => 'InnoDB',
|
|
}
|
|
}
|
|
}
|
|
|
|
include ::mysql::server::account_security
|
|
|
|
mysql::db { $database_name:
|
|
user => $database_user,
|
|
password => $database_password,
|
|
host => 'localhost',
|
|
grant => ['all'],
|
|
charset => 'utf8mb4',
|
|
collate => 'utf8mb4_unicode_ci',
|
|
require => [
|
|
Class['mysql::server'],
|
|
Class['mysql::server::account_security'],
|
|
],
|
|
}
|
|
}
|