
We're about to land some changes to lodgeit and it seems like we might want to be careful about rolling them out. Change-Id: I6e136099ba1f321ad008b14042574211b7d5e56d
32 lines
672 B
Puppet
32 lines
672 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'],
|
|
],
|
|
}
|
|
}
|
|
|