module-puppetlabs-mysql/manifests/params.pp
Gary Larizza 6b98633cc8 Add client package variable
The mysql client package is different on CentOS. This commit adds
a parameter for the mysql client package and defaults to a variable
in the mysql::params class.
2011-06-16 15:34:04 -07:00

31 lines
660 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'
$client_package_name = 'mysql'
}
'ubuntu', 'debian': {
$service_name = 'mysql'
$client_package_name = 'mysql-client'
}
default: {
$python_package_name = 'python-mysqldb'
$ruby_package_name = 'ruby-mysql'
$client_package_name = 'mysql'
}
}
}