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:
parent
3462e6bf13
commit
360eacd4e0
1 changed files with 4 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue