diff --git a/manifests/client/ruby/debian.pp b/manifests/client/ruby/debian.pp index 554984b..e2a28e1 100644 --- a/manifests/client/ruby/debian.pp +++ b/manifests/client/ruby/debian.pp @@ -1,6 +1,9 @@ # debian ruby client class mysql::client::ruby::debian { - package { 'libmysql-ruby': - ensure => present, + if $operatingsystemmajversion >= 7 { + $package = 'ruby-mysql' + } else { + $package = 'libmysql-ruby' } + ensure_packages([ $package ]) }