Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 5fe9ef1e832f06a2748d471e3f396d4cd4ab5f02 1 parent bd88502
@justinellison justinellison authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 manifests/params.pp
View
5 manifests/params.pp
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.