Clark Boylan d157f7c1a8 Fix utf8 4 byte collation method
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
2016-11-14 17:48:59 -08:00

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'],
],
}
}