Moved $socket to within the case to toggle between distros. Added

a $config_file variable to allow per-distro config file destinations.
This commit is contained in:
Justin Ellison 2012-01-10 19:16:32 -06:00 committed by Nan Liu
parent 3462e6bf13
commit 360eacd4e0

View file

@ -12,15 +12,18 @@
# Sample Usage:
#
class mysql::params{
$socket = '/var/run/mysqld/mysqld.sock'
case $::operatingsystem {
'centos', 'redhat', 'fedora': {
$service_name = 'mysqld'
$client_package_name = 'mysql'
$socket = '/var/lib/mysql/mysql.sock'
$config_file = '/etc/my.cnf'
}
'ubuntu', 'debian': {
$service_name = 'mysql'
$client_package_name = 'mysql-client'
$socket = '/var/run/mysqld/mysqld.sock'
$config_file = '/etc/mysql/my.cnf'
}
}
$python_package_name = 'python-mysqldb'