2011-06-01 05:47:19 +02:00
|
|
|
# Class: mysql::params
|
|
|
|
#
|
2012-02-09 20:26:00 +01:00
|
|
|
# The mysql configuration settings.
|
2011-06-01 05:47:19 +02:00
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
2012-02-09 20:26:00 +01:00
|
|
|
class mysql::params {
|
|
|
|
|
|
|
|
$bind_address = '127.0.0.1'
|
|
|
|
$port = 3306
|
|
|
|
$server_package_name = 'mysql-server'
|
|
|
|
$etc_root_password = false
|
|
|
|
|
|
|
|
case $::osfamily {
|
|
|
|
'RedHat': {
|
|
|
|
$service_name = 'mysqld'
|
|
|
|
$client_package_name = 'mysql'
|
|
|
|
$socket = '/var/lib/mysql/mysql.sock'
|
|
|
|
$config_file = '/etc/my.cnf'
|
|
|
|
$ruby_package_name = 'ruby-mysql'
|
|
|
|
$ruby_package_provider = 'gem'
|
|
|
|
$python_package_name = 'MySQL-python'
|
2011-05-27 03:11:24 +02:00
|
|
|
}
|
2012-02-09 20:26:00 +01:00
|
|
|
|
|
|
|
'Debian': {
|
2011-06-17 00:34:04 +02:00
|
|
|
$service_name = 'mysql'
|
|
|
|
$client_package_name = 'mysql-client'
|
2012-01-11 02:16:32 +01:00
|
|
|
$socket = '/var/run/mysqld/mysqld.sock'
|
|
|
|
$config_file = '/etc/mysql/my.cnf'
|
2012-01-11 20:01:02 +01:00
|
|
|
$ruby_package_name = 'libmysql-ruby'
|
|
|
|
$python_package_name = 'python-mysqldb'
|
2011-05-27 03:11:24 +02:00
|
|
|
}
|
2012-02-09 20:26:00 +01:00
|
|
|
|
2012-01-11 19:31:34 +01:00
|
|
|
default: {
|
2012-03-15 07:07:02 +01:00
|
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")
|
2012-01-11 19:31:34 +01:00
|
|
|
}
|
2011-05-27 03:11:24 +02:00
|
|
|
}
|
2012-02-09 20:26:00 +01:00
|
|
|
|
2011-05-25 08:22:43 +02:00
|
|
|
}
|