Permalink
Browse files

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

a $config_file variable to allow per-distro config file destinations.
  • Loading branch information...
1 parent bd88502 commit 5fe9ef1e832f06a2748d471e3f396d4cd4ab5f02 @justinellison justinellison committed Jan 11, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 manifests/params.pp
View
@@ -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'

0 comments on commit 5fe9ef1

Please sign in to comment.