2011-06-01 05:47:19 +02:00
|
|
|
# Class: mysql::server
|
|
|
|
#
|
2012-02-09 20:26:00 +01:00
|
|
|
# manages the installation of the mysql server. manages the package, service,
|
|
|
|
# my.cnf
|
2011-06-01 05:47:19 +02:00
|
|
|
#
|
|
|
|
# Parameters:
|
2013-04-09 20:45:55 +02:00
|
|
|
# [*enabled*] - Defaults to true, boolean to set service ensure.
|
|
|
|
# [*manage_service*] - Boolean dictating if mysql::server should manage the service
|
|
|
|
# [*package_ensure*] - Ensure state for package. Can be specified as version.
|
|
|
|
# [*package_name*] - The name of package
|
|
|
|
# [*service_name*] - The name of service
|
|
|
|
# [*service_provider*] - What service provider to use.
|
|
|
|
|
2011-06-01 05:47:19 +02:00
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
2012-02-09 20:26:00 +01:00
|
|
|
class mysql::server (
|
2012-10-05 01:20:07 +02:00
|
|
|
$enabled = true,
|
2013-04-09 20:45:55 +02:00
|
|
|
$manage_service = true,
|
2013-09-09 17:34:39 +02:00
|
|
|
$package_ensure = $mysql::globals::package_ensure,
|
|
|
|
$package_name = $mysql::globals::server_package_name,
|
|
|
|
$service_name = $mysql::globals::service_name,
|
|
|
|
$service_provider = $mysql::globals::service_provider
|
|
|
|
) inherits mysql::globals {
|
2011-06-16 19:49:15 +02:00
|
|
|
|
2013-09-09 17:34:39 +02:00
|
|
|
Class['mysql::server::root_password'] -> Mysql::Db <| |>
|
2012-03-15 08:51:35 +01:00
|
|
|
|
2013-09-09 17:34:39 +02:00
|
|
|
include '::mysql::server::install'
|
|
|
|
include '::mysql::server::config'
|
|
|
|
include '::mysql::server::service'
|
|
|
|
include '::mysql::server::root_password'
|
2012-03-18 07:56:13 +01:00
|
|
|
|
2013-09-09 17:34:39 +02:00
|
|
|
Class['mysql::server::install'] ->
|
|
|
|
Class['mysql::server::config'] ->
|
|
|
|
Class['mysql::server::service'] ->
|
|
|
|
Class['mysql::server::root_password']
|
2011-06-16 19:49:15 +02:00
|
|
|
|
2011-06-22 20:38:11 +02:00
|
|
|
}
|