2011-06-01 05:47:19 +02:00
|
|
|
# Class: mysql::ruby
|
|
|
|
#
|
|
|
|
# installs the ruby bindings for mysql
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# [*ensure*] - ensure state for package.
|
|
|
|
# can be specified as version.
|
|
|
|
# [*package_name*] - name of package
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
2011-05-27 03:11:24 +02:00
|
|
|
class mysql::ruby(
|
2011-06-01 05:46:02 +02:00
|
|
|
$ensure = installed,
|
2011-05-27 03:11:24 +02:00
|
|
|
$package_name = $mysql::params::ruby_package_name
|
|
|
|
) inherits mysql::params {
|
2011-05-25 08:22:43 +02:00
|
|
|
# I am not making the mysql package a dep for this
|
|
|
|
# the only dep is the package which yum will resolve for me.
|
|
|
|
#case $operatingsystem {
|
|
|
|
# 'debian', 'ubuntu' : {$ruby_mysql_name = 'libmysql-ruby'}
|
|
|
|
# default: {$ruby_mysql_name = 'ruby-mysql'}
|
|
|
|
#}
|
|
|
|
|
|
|
|
package{'ruby-mysql':
|
|
|
|
# name => $ruby_mysql_name,
|
2011-05-27 03:11:24 +02:00
|
|
|
name => $package_name,
|
2011-05-25 08:22:43 +02:00
|
|
|
provider => 'gem',
|
2011-06-01 05:46:02 +02:00
|
|
|
ensure => $ensure,
|
2011-05-25 08:22:43 +02:00
|
|
|
}
|
|
|
|
}
|