Andrey Nikitin cd6889a359 Order of the classes parameters is refactored
Order and intendation of those parameters are changed
to follow Puppet Style Guide recommendation [0].
Moreover, it will allow to an user to find much faster
a variable in a list of variables.

[0]. https://docs.puppetlabs.com/guides/style_guide.html

Change-Id: If012896a95088ae836d5dfa35aa3cad553aee516
2016-03-21 12:07:49 +03:00

32 lines
704 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',
require => [
Class['mysql::server'],
Class['mysql::server::account_security'],
],
}
}