28 lines
501 B
Puppet
28 lines
501 B
Puppet
# Class: mysql::params
|
|
#
|
|
# This class holds parameters that need to be
|
|
# accessed by other classes.
|
|
#
|
|
# Parameters:
|
|
#
|
|
# Actions:
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
class mysql::params{
|
|
$socket = '/var/run/mysqld/mysqld.sock'
|
|
case $operatingsystem {
|
|
'centos', 'redhat', 'fedora': {
|
|
$service_name = 'mysqld'
|
|
}
|
|
'ubuntu', 'debian': {
|
|
$service_name = 'mysql'
|
|
}
|
|
default: {
|
|
$python_package_name = 'python-mysqldb'
|
|
$ruby_package_name = 'ruby-mysql'
|
|
}
|
|
}
|
|
}
|