Andrey Nikitin d1e34ab9c7 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: I8063448c4b30dc97acbf1cce047bc5dfb6b69664
2016-03-21 13:06:07 +03:00

32 lines
676 B
Puppet

# == Class: puppet-lodgeit::mysql
#
class lodgeit::mysql(
$database_password,
$mysql_root_password,
$database_name = $name,
$database_user = $name,
) {
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 => 'utf8',
require => [
Class['mysql::server'],
Class['mysql::server::account_security'],
],
}
}